โ03-22-2021 02:23 PM
Iโm wondering if it is possible to add utilities to snaplogic to support scripting. Specifically Iโm looking for something to help write dynamically generated (via xslt) html into a pdf file , basically to get a pretty print data output to our sftp server.
There seem to be a lot of options out there for python or javascript
Python Convert Html to PDF: Python Convert Html to PDF - GeeksforGeeks
PSPDFKit : How to Generate a PDF with JavaScript | PSPDFKit
Or via an api like pdfcrowd: HTML to PDF with HTTP POST - Pdfcrowd
Also, if anyone has worked with these or similar products your advice would be most welcome.
Solved! Go to Solution.
โ03-23-2021 11:15 AM
Actually, it works with the Upload File row removed, and with nothing for โSingle file upload: File keyโ.
I got it to work with the โurlโ option of the conversion service. Pretty cool!
โ03-22-2021 04:18 PM
Followup to my own question: Iโm playing around with pdfcrowd, and able to get back pdf content from them on an http post. Unfortunately, the response causes and error. Can snaplogic handle this type of content somehow?
โ03-22-2021 04:19 PM
โ03-22-2021 06:47 PM
Which snap are you using to call it and how exactly are you configuring it?
โ03-23-2021 12:42 AM
Patrick,
Thanks for your response. Iโm using a REST Post with service url, upload file, and headers defined (attached)
AC pdfcrowd test pipeline_2021_03_23.slp (9.0 KB)
I can share my account information if you need it