Convert PDF to HTML in Java
Convert PDF files to HTML with Aspose.Slides for Java without Adobe Acrobat.
Convert PDF to HTML in Java
Aspose.Slides for Java
lets you import PDF files into a presentation and save the result as HTML. With this Java API, you can convert PDF content without Adobe Acrobat.
Convert PDF to HTML using Java
To convert PDF to HTML, create a Presentation, import the source file with ISlideCollection.addFromPdf, and save the presentation with SaveFormat.Html.
Java code for converting PDF into HTML
Presentation presentation = new Presentation();
try {
presentation.getSlides().addFromPdf("input.pdf");
presentation.save("output.html", SaveFormat.Html);
} finally {
presentation.dispose();
}
How to convert PDF to HTML using Aspose.Slides for Java API
These are the steps to convert PDF to HTML in Java.
Install Aspose.Slides for Java .
Add a library reference (import the library) to your Java project.
Open the source
PDFfile in Java.Save the result as an
HTMLfile.
Free Online Converter
Convert presentations and slides online.
Convert PDF To Other Supported Formats
You can also convert PDF and save to other file formats. See all supported formats below