PDF Generation Template Editor
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
ComPDF Conversion SDK provides the PDF to HTML function, which can convert PDF files to HTML files while maintaining the layout and format of the original document.
| Option | Value | Description |
|---|---|---|
SINGLE_PAGE | 0 | Convert the entire PDF into a single HTML file. |
SINGLE_PAGE_WITH_BOOKMARK | 1 | Convert the PDF into a single HTML file with a bookmark navigation bar. |
MULTI_PAGE | 2 | Convert the PDF into multiple HTML files, one file per page. |
MULTI_PAGE_WITH_BOOKMARK | 3 | Convert the PDF into multiple HTML files with an outline page for navigation. |
const options = {
htmlOption: 0
};
const result = sdk.startPDFToHtml(
inputFilePath,
"",
outputFilePath,
options
);