Free Support Forum - aspose.com

Convert PDF to Flip book (HTML5 in flip book format)

Hi,

We are looking for a solution to convert the PDF file to Flipbook format. Please confirm whether Aspose, PDF library provides the capability to convert the PDF to HTML5 format. PDF size can be of 400 MB as we looking for an offline solution, is any DLL or API available for same.

@sumitg2386,

You can convert a PDF to Booklet, and save in the HTML5 format. Please try the code as follows:
C#

FileStream inputPDF = new FileStream(dataDir + "input.pdf", FileMode.Open);
// Create PdfFileEditor object
PdfFileEditor pdfEditor = new PdfFileEditor();
MemoryStream outStream = new MemoryStream();
// Make booklet
pdfEditor.MakeBooklet(inputPDF, outStream);
// load stream
Document document = new Document(outStream);
// Instantiate HTML save options object
HtmlSaveOptions newOptions = new HtmlSaveOptions();
newOptions.DocumentType = HtmlDocumentType.Html5;
document.Save(dataDir + "Output.html", newOptions);

Please also refer to these help topics: Make Booklet of PDF and PDF to HTML - Basics of Conversion