Page 1 of 1

Generate PDF with Images and Download

Posted: Fri Mar 12, 2021 3:33 pm
by mlyons
I know how set things up to download an existing pdf file on the ifs. I am looking to generated a PDF from an image with fields overlaid on it.

I can get what I want by using window.print() and then saving as a pdf, but I would like to be able to achieve this when pressing a button on the display file. Is there a way to do this using profound? Thanks!

Re: Generate PDF with Images and Download

Posted: Fri Mar 12, 2021 4:32 pm
by Scott Klement
We do not have something like this built-in to our products

A quick search of NPM finds lots of free tools for converting images, you could potentially use one of these from Profound.js. I have not tried them personally.
https://www.npmjs.com/search?q=png%20to%20pdf

Re: Generate PDF with Images and Download

Posted: Sat Mar 13, 2021 10:51 pm
by mlyons
Thanks Scott. I am using Profound UI so I would be using RPG and a Rich Display File if that makes a difference.

Re: Generate PDF with Images and Download

Posted: Sun Mar 14, 2021 10:46 pm
by Scott Klement
Profound Logic does not provide tools for converting images to PDF in any of its products.

The link I provided above is for free tools that I found in a quick search that does what you're asking for. These are Node.js tools, but do not require Profound.js to use them, so you could potentially write a Node.js script that you call from your RPG program. Alternately, you could look for other tools that work in other environments.