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] 
Howdy, Stranger!
Categories
- 4.5K All Categories
 - 88 General
 - 13 Training
 - 214 Installation / Setup
 - 1.2K Flows
 - 112 Rules
 - 277 Administration
 - 215 Portal
 - 503 General Q & A
 - 722 Forms
 - 356 Reports
 - 3 Designer Extensions
 - 47 Example Flows
 - 58 CSS Examples
 - 1 Diagram Tile
 - 8 Javascript Controls
 - 190 Pages
 - 5 Process Mining
 - New Features
 - 187 Datastructures
 - 73 Repository
 - 238 Integrations
 - 30 Multi-Tenant
 - 27 SDK
 - 81 Modules
 - 60 Settings
 - 27 Active Directory
 - 12 Version 7
 - 37 Version 8
 - 143 Lunch And Learn Questions