I'm not aware of a way to do that in native 4D. I use Node with Puppeteer and 
headless Chrome. This provides a way to specify parameters such as headers, 
footers, and orientation. I have it setup to run on the server and clients can 
call a server procedure to convert HTML to PDF. Very fast and reliable.

John DeSoi, Ph.D.


> On Nov 3, 2019, at 10:03 AM, Mitchell Shiller via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Hi,
> 
> I generate an HTML document that is displayed in a WebArea.
> Once completed, I need to generate a PDF procedurally. (No user interaction)
> 
> Is there a way to either
> 1) print out a Web Area ( the contents could be more than 1 page long)
> 2) convert the HTML to a PDF.
> 
> I am on Mac. 4Dv17R5.
> 
> Thanks.
> 
> Mitch

**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to