PDF Retrieval

PDF Retrieval

Comments

  • Hi Support,

    I currently have a working API call in decisions bringing in PDF byte data, however the output to this call is a string and I have been unable to retrieve the PDF file from this in a document viewer with an option to download. Could you advise please?

    Thanks in advance.

  • [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]Hi Lee, [/font][/color]

    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]In your API Rest Service reference, You will need to deselect the Output Raw Value option, and select the Service Return Data Type of Binary. [/font][/color]
    [color=#222222]
    [/color][color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]This will allow the API call to pass data through as binary instead of a string, allowing Decisions to handle the data correctly. [/font][/color]

    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]A filename for file data will appear, ensure to add the extension .pdf to your filename. [/font][/color]
    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
    [/font][/color][color=rgb(127, 140, 141)][font=Roboto]"[img]att3[/img]"[/font][/color]
    [color=#7f8c8d]
    [/color]
    [color=rgb(127, 140, 141)][font=Roboto] "[img]att2[/img]"[/font][/color][color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
    [/font][/color]
    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]A form can be added to contain your document viewer allowing the user to view the PDF within the form. With a button to allow the option to download it locally. [/font][/color]
    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
    [/font][/color][color=rgb(127, 140, 141)][font=Roboto]"[img]att1[/img]"[/font][/color][color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
    [/font][/color]
    Details of using document viewers can be found here: https://documentation.decisions.com/v6/docs/document-viewer-form

    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]I hope this helps. [/font][/color]
    [i]edited by tim@decisions.com on 1/13/2020[/i]

Sign In or Register to comment.