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.4K All Categories
- 86 General
- 13 Training
- 212 Installation / Setup
- 1.2K Flows
- 112 Rules
- 282 Administration
- 216 Portal
- 502 General Q & A
- 720 Forms
- 353 Reports
- 3 Designer Extensions
- 48 Example Flows
- 58 CSS Examples
- 1 Diagram Tile
- 8 Javascript Controls
- 189 Pages
- 5 Process Mining
- New Features
- 187 Datastructures
- 71 Repository
- 233 Integrations
- 30 Multi-Tenant
- 27 SDK
- 81 Modules
- 60 Settings
- 27 Active Directory
- 12 Version 7
- 36 Version 8
- 143 Lunch And Learn Questions