Render Request ExtensionSettings

Posted by: dklingman on 17 July 2019, 6:23 am EST

    • Post Options:
    • Link

    Posted 17 July 2019, 6:23 am EST

    I’m trying to understand how to use the ExtensionSettings when sending a POST /api/reports/{id}/jobs/render. I’ve been trying to pass all types of setting none of which seem to make the slightest difference. From what is stated on the help documentation, “the extension settings is object which contains the existing settings for selected rendering extension.”. With a link that takes me to the Rendering class libraries. So I’m taking that these ExtensionSettings are the Settings for an export. For instance for PDF’s here’s a request I sent. With the simplest setting, I could think of to send, which is to just try and add an author to the pdf.

    
    {"DocumentId":"d2ee0a9c-39ba-436f-bb78-1be573422952","InteractiveActions":[],"ExtensionSettings":{"Author":"test"},"ExtensionName":"Pdf"}
    
    

    This didn’t work. I open the PDF and the author is not set. So what are these ExtnesionSettings and what can actually be passed? Again it’s quite hard to figure out when the documentation is lacking.

  • Posted 17 July 2019, 6:33 pm EST - Updated 30 September 2022, 12:52 am EST

    Hello Derek,

    I am not able to reproduce the issue with the following post API: localhost:8080/api/reports/5b02757e6d34ce4f6ce66265/jobs/render Body:

    {
     
      "ExtensionName": "Pdf",
      "ExtensionSettings": {"Author":"test"}
    
    }
    

    Please refer to the attached image.

    You have provided the “DocumentID” which is not necessary in the case of “Render” API.

    Could you please explain, If I am missing something at my end.

    Thanks.

  • Posted 17 July 2019, 11:16 pm EST - Updated 30 September 2022, 12:52 am EST

    The request I make

    The response I get back

    How my pdf’s properties looks

    ARS Version: 12.3.9673.0

  • Posted 18 July 2019, 12:12 am EST

    Derek, I have checked with same API and version and no issue is observed at my end. Could you please share how you are generating the “RawFile.pdf” file.

    Also, please try to download using the following API: http://csactiverpt-qa/ActiveReports/cache/RequisitionConfirmationBPR214.pdf?Accession=e71384ab-00d3-4ce5-bbc4-d1fd5c9a6385&Salt=4f8b6be644864f0cbf6fdba324a4c1c6&Name=RequisitionConfirmationBPR214.pdf

    Change the above API according to the response you get.

    Thanks.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels