Some test text!


PDF to HTML Command Line Conversion

PDFTron's PDF2HTML is an easy-to-use, stand-alone command-line application that provides users with an efficient means of converting PDF documents to HTML files. PDF2HTML exports high quality HTML that authentically maintains the contents of the original PDF.

Like other PDFTron products, PDF2HTML does not rely on any other third-party software. PDF2HTML can be used in server environments or as a batch conversion process.

Download PDF2HTML

linkWhy PDF2HTML?

PDF2HTML is easy to use and reliably preserves the contents of the PDF in the HTML output. PDF fonts are mapped to the appropriate system fonts with style, size and kerning to make accurate fit. PDF tables with and without PDF table structures are detected and converted to HTML tables automatically. Single and multi-column pages are converted to equivalent structures with text flow preserved to facilitate editing. Graphics are converted authentically and placed accurately on the page.

PDF2HTML can be used in server environments and is also suitable for use in batch conversion workflows.

linkKey Functions

  • Convert PDF to HTML and HTM.
  • Support for all versions of Acrobat documents.
  • Support for Unicode and all PDF font formats.
  • Support for password-protected PDF.
  • Batch conversion.
  • Options to improve text readability and layout.
  • Automatically converts to structured content.
  • Option to convert specific page ranges.
  • Options to control image quality.
  • Options to handle OCRed PDFs.

linkCommon Use Case Scenarios

  • Simple conversion of PDF to HTML for Web posting.
  • Server-based, on-demand conversion of PDF documents to HTML format.
  • Batch processing of PDF files for data collection.

linkOperating Systems Supported

  • Windows, Linux and Mac.

linkSystem Requirements

  • At least 30 MB of free disk space.
  • Memory requirement is dependent on the source document being converted. We recommend a minimum of 4 GB.


echo "Example 1) Convert myIn.pdf in this folder to myOut.html using default options:"
./pdf2html -in myIn.pdf -out myOut.html

Get the answers you need: Support


Free Trial

Get unlimited trial usage of PDFTron SDK to bring accurate, reliable, and fast document processing capabilities to any application or workflow.

Select a platform to get started with your free trial.

Unlimited usage. No email address required.

Join our live demo to learn about use cases & capabilities for WebViewer

Learn more