Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active June 9, 2021 06:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/8fe7879cbd2b52f75da4035617105d2e to your computer and use it in GitHub Desktop.
Save aspose-com-gists/8fe7879cbd2b52f75da4035617105d2e to your computer and use it in GitHub Desktop.
// Load the source PDF document
Document pdfDocument = new Document("PDFToHTML.pdf");
// Instantiate HTMLSaveOptions
HtmlSaveOptions htmlOptions = new HtmlSaveOptions();
// Split the output into multiple pages
htmlOptions.setSplitIntoPages(true);
// Save the PDF file as HTML
pdfDocument.save("pdf-to-html.html", htmlOptions);
// Load the source PDF document
Document pdfDocument = new Document("PDFToHTML.pdf");
// Save the PDF file as HTML
pdfDocument.save("pdf-to-html.html", SaveFormat.Html);
@aspose-com-gists
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment