Skip to content
ComPDF

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

OptionDescription
e_CSinglePageConvert the entire PDF file into a single HTML file.
e_CSinglePageWithBookmarkConvert the PDF file into a single HTML file with an outline for navigation at the beginning of the HTML page.
e_CMultiPageConvert the PDF file into multiple HTML files.
e_CMultiPageWithBookmarkConvert 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);