Automate HTML to PDF with PDFpenPro 5.2.3

Philip Blog, PDFpen, PDFpen Tips

PDFpenPro 5.2.3 can now automate the creation of PDFs from web pages via AppleScript. Here’s an example:

tell application “PDFpenPro”

activate

set theDoc to make new document with data “http://smilesoftware.com” with properties {levels:2, top margin:36, bottom margin:36, right margin:36, left margin:36, follow:server, maximum pages:100}

end tell

The return value is the created document. You’ll find additional information on converting HTML to PDF with PDFpenPro in the PDFpenPro help. You can upgrade from PDFpen to PDFpenPro for US $40. In addition to being able to convert websites to multi-page PDFs, you’ll also be able to create cross-platform fillable forms and to construct document table of contents with PDFpenPro.