Q:
I am interested in converting an eBook in ePub format to work with the Web Viewer. Do you have any samples for EPUB to PDF conversion? I could only find the HTML2PDF converter on the PDFTron website (http://www.pdftron.com/pdfnet/samplecode.html#Html2Pdf), which looks like it converts a HTML pages page to PDF.
A:
EPUB is a collection of HTML pages wrapped in a ZIP file. To support epub you could:
a) Unzip the archive to a temp folder: unzip my.epub -o tmpdir
b) call HTML2PDF and assemble composite PDF
c) Delete temp folder