David has posted 35 posts at DZone. View Full User Profile

Convert PDF to HTML & Enhanced Pdf to JPEG Conversion inside Java Apps

10.22.2013
| 1035 views |
  • submit to reddit
Location: 
Lane Cove, New South Wales, Australia

What's New in this Release?

The long awaited version of Aspose.Pdf for Java 4.3.0 has been released. This new release provides an exciting feature to convert PDF files to HTML format by using just two lines of code. We’ve previously provided the feature to extract PDF file contents as HTML using the PdfExtractor class’ extractTextAsHTML(..) method but the new approach greatly improves the output fidelity.

Here is the code:

// Load source PDF file
com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document("c:/source.pdf");
// Save the file into HTML format
pdfDocument.save("c:/output.html", com.aspose.pdf.SaveFormat.Html);

In this new release, we have introduced a separate JAR file, aspose-pdf-4.3.0-jdk14.jar, targeted for JDK1.4 and JDK1.5. Furthermore, this release also provides better PDF to image conversion, both in terms of results and performance. Some important new and improved features included in this release are given below

  • PDF to HTML
  • Aspose.Pdf for Java 4.0.0(Merged version) is now compatible with jdk 1.5
  • PDF to JPEG Conversion- Performance is much improved
  • PDF to HTML - some words overlap and formatting issues are resolved
  • Insert method of PdfFileEditor class causing problems are now fixed
  • TextSegment class missing issue is resolved from com.aspose.pdf.facades package

Newly added documentation pages and articles

Some new tips and articles have now been added into Aspose.Pdf for Java documentation that may guide you briefly how to use Aspose.Pdf for performing different tasks like the followings.

Overview: Aspose.Pdf for Java

Aspose.Pdf is a Java PDF component to create PDF documents without using Adobe Acrobat. It supports Floating box, PDF form field, PDF attachments, security, Foot note & end note, Multiple columns document, Table of Contents, List of Tables, Nested tables, Rich text format, images, hyperlinks, JavaScript, annotation, bookmarks, headers, footers and many more. Now you can create PDF by API, XML and XSL-FO files. It also enables you to converting HTML, XSL-FO and Excel files into PDF.

More about Aspose.Pdf for Java

Contact Information

Aspose Pty Ltd
Suite 163, 79 Longueville Road
Lane Cove, NSW, 2066
Australia
Aspose – Your File Format Experts
sales@aspose.com
Phone: 888.277.6734
Fax: 866.810.9465

0
Published at DZone with permission of its author, David Zondray.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)