Convert HTML to PDF and PDF to HTML
The Apryse Server SDK converts HTML to PDF, from a URL or an HTML string. It also converts PDF to HTML, either as an exact page match or as reflowed text. Both run on your own servers in the language of your choice.
Convert in Either Direction
The Server SDK converts HTML to PDF and PDF to HTML in your backend. Use HTML to PDF to turn web content your app already builds into documents. Use PDF to HTML to publish existing PDFs on the web.

HTML to PDF: Render Web Content as Pages
The HTML2PDF module loads HTML from a URL or a string and renders it to PDF with a headless Chromium engine that supports modern CSS and JavaScript. You set the page size, margins, headers, and footers. Each conversion runs in its own isolated process, with no stored cookies, site data, or cache.
PDF to HTML: Match the Page
Each element keeps its original position, so the HTML looks like the PDF. Links can carry over. The docs call this output fixed position.
PDF to HTML: Fit the Screen
The content becomes flowing text that adapts to any screen width, with images embedded. The docs call this output full reflow.
HTML to PDF is One Step in a Larger Document Pipeline
Generating the PDF is usually the first step. In the same Server SDK process, you can convert the output to PDF/A for archiving, encrypt it, or apply a digital signature before your app stores or sends it. That’s one SDK to initialize, deploy, and patch, not several libraries.

Common Uses for PDF/HTML/PDF Conversion
Show PDFs as Web Pages
Serve statements, reports, and manuals in your portal as HTML that matches the original layout.
Make PDFs Readable on Phones
Convert long documents to text your users can scroll, without pinching and zooming.
Send PDF Content to Search and Parsing
Give your search index or parsing code HTML text instead of positioned page fragments.
Generate PDFs from HTML Templates
Render invoices, statements, and reports from the HTML your app already produces.
Getting Started
All three conversions run under a Basic Conversion add-on license, and trial keys include add-on modules during evaluation. HTML to PDF needs the HTML2PDF module in your SDK directory, and full reflow needs the Structured Output module. Fixed-position PDF to HTML needs nothing else. On Linux, install the HTML2PDF shared library dependencies before your first conversion. See the PDF to HTML guide and the PDF2HtmlTest sample for the call in each language.


