Converting HTML to PDF

55 views
Skip to first unread message

Ryan

unread,
Sep 16, 2015, 1:45:39 AM9/16/15
to PDFTron PDFNet SDK
Q:

Is it possible to convert HTML to PDF on Windows OS? I would also like to use my PWS account.

***************************************************************************************************

A:

Yes, it is certainly possible to convert HTML files on a windows OS, using PDFTron's DocPub command line tool, and PDFTron Web Services (PWS) licensing.
  1. First download DocPub for Windows: https://www.pdftron.com/downloads/docpub.zip
  2. If you do not have MS Word installed
    1. Download PDFTron HTML2PDF module: https://www.pdftron.com/downloads/HTML2PDF.zip
    2. Extract and place the HTML2PDF.dll file in the same directory as DocPub.exe
  3. Run the following command
docpub.exe -f pdf -o output path_to_html_file

This will create a new folder called output, and in it will be the generated PDF file.

Note, that these same instructions work for Linux and OSX, just pick the appropriate DocPub and HTML2PDF downloads.

When you are ready to license the conversion, and remove the watermark, then follow the instructions for signing up for a PDFTron Web Services (PWS) account, and loading your PWS credentials with DocPub, at the link below.
https://www.pdftron.com/pws/onpremise.html

Reply all
Reply to author
Forward
0 new messages