Q:
I am trying to locate the sample code for PDF2HTML (preferably for c++). I see it mentioned in your literature, and there is even a URL that should bring me to the sample code, but PDF2HTML is not there.
A:
For a quick test drive use docpub CLI (http://www.pdftron.com/docpub/downloads.html):
docpub -f html my.pdf
In case of PDFNet SDK, the conversion should be as simple as:
PDFDoc pdfdoc;
Convert::ToHtml("my.pdf", "html");
There are also a number of relevant conversion options:
For a more complete sample (including PDF to HTML conversion), see Convert sample:
http://www.pdftron.com/pdfnet/samplecode.html#Convert
(C++ version) http://www.pdftron.com/pdfnet/samplecode/ConvertTest.cpp.html
It’s in the ConvertSpecificFormats() function, second from the bottom.
For alternative ways to visualize PDF in browser see http://blog.pdftron.com/2013/08/08/how-to-integrate-a-pdf-viewer-in-html5-apps/
For more info about PDF to HTML/EPUB see http://blog.pdftron.com/2013/11/15/high-quality-epub-html-from-pdf