Overview
ComPDF Conversion SDK converts PDF files to HTML files while maintaining the layout and format of the original document, allowing users to browse and view the document on the web.
HTML Options
| Option | Description |
|---|---|
e_CSinglePage | Convert the entire PDF file into a single HTML file. |
e_CSinglePageWithBookmark | Convert the PDF file into a single HTML file with an outline for navigation at the beginning of the HTML page. |
e_CMultiPage | Convert the PDF file into multiple HTML files. |
e_CMultiPageWithBookmark | Convert the PDF file into multiple HTML files with an outline HTML file for navigation. |
Sample
c
CConvertOption option = CPDF_DefaultConvertOption();
CPDF_StartPDFToHtml(CPDF_TEXT("html.pdf"), CPDF_TEXT("password"), CPDF_TEXT("path/output.html"), option, NULL);
option.page_layout_mode = e_PageLayoutModeBox;
option.html_option = e_CMultiPageWithBookmark;
CPDF_StartPDFToHtml(CPDF_TEXT("html.pdf"), CPDF_TEXT("password"), CPDF_TEXT("path/output_multi.html"), option, NULL);