How do I convert EPUB to PDF, XPS, XOD using PDFTron?

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 (, which looks like it converts a HTML pages page to PDF.


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