Over a million developers have joined DZone.

Convert PDF to Excel & PDF/A-3, Improved PDF Size Optimization in Java Apps

DZone's Guide to

Convert PDF to Excel & PDF/A-3, Improved PDF Size Optimization in Java Apps

Free Resource

What's New in this Release?

We are pleased to announce the release of Aspose.Pdf for Java 9.3.0. In this release, we have introduced the feature to convert a PDF file to a Microsoft Excel workbook, where each individual page in the PDF is rendered as a separate worksheet. PDF to PDF/A conversion has been supported in this API for a while already. To further extend this feature, we have introduced the capability to convert PDF documents to PDF/A_3B format. For this purpose, a new value, PDF_A_3B, has been introduced to the PdfFormat class. JavaScript is one of the great options available in PDF documents as it provides the capability to call certain features/operations at particular event. Using JavaScript, we can also set PDF expiration. Layers can be useful when you have a multi-lingual file that you want to distribute and want text in each language to appear on different layers, with the background design appearing on a separate layer as well. You might also create documents with animation that appears on a separate layer. One example could be to add a license agreement to your file, and you don’t want a user to view the content until they agree to the terms of the agreement. The latest release of Aspose.Pdf for Java supports adding layers to PDF files (either while creating a new document or manipulating an existing file). In order to accomplish this requirement, a class named Layer is introduced. Font are embedded inside a PDF file so that text is displayed properly when the document is viewed on a machine that does not have all of the fonts the PDF contains installed. However, when embedding the fonts, the complete font is included in the PDF and the file size increases. To optimize the size of a PDF file, is is possible to un-embed fonts. To accomplish this requirement, the UnembedFonts(..) method has been introduced to the OptimizationOptions class. If true is passed as an argument to this method, the fonts in the PDF file are no longer embedded. The DocumentPrivilege class has been introduced to allow the users to set PDF access privileges. Using this class, you can allow or prevent users from certain operation on a PDF file. As well as the new features mentioned above, this version includes fixes related to converting SVG/PCL/HTML/XPS files to PDF and converting PDF files to image format. Better text and image extraction, general performance improvements when generating PDF files and much more.  Some important new and improved features included in this release are given below

  • Convert PDF file to PDF/A3
  • PDF Expiration Feature
  • Pdf to Excel converter
  • BindFO() method with ByteArrayInputStream parameter
  • MemoryLeaks are fixed during text extraction
  • StackOverflowError  is resolved on getting RadioButton
  • PCL to PDF: java.lang.RuntimeException is resolved
  • XPS to PDF: Rectangle renders incorrectly is now corrected
  • SVG to PDF - Input SVG file wasn't closed and is now fixed
  • XPS to PDF - Bookmarks issue is fixed and are now honored
  • Some methods and fields are now visible after obfuscation
  • ZipException: unknown compression is resolved method while opening PNG-file
  • XPS to PDF conversion: Invalid character found exception in com.aspose.ms.System.Xml.hr class is now fixed
  • HTML to PDF throws RuntimeException: is now resolved
  • Image extraction code compilation error "ag cannot be resolved to a type" is now fixed
  • Concatenating Tagged file results into non-tagged file is now fixed.
  • PDF to PNG: JAR throwing Corrupt content Exception message is resolved
  • PDF to PNG - Text dropping out in the images is now fixed
  • PDF to Image - Java heap space error is resolved while conversion
  • API does not listing all XFA fields is now fixed
  • Bookmarks collection only retains last bookmark
  • Invalid parameters appearing against getNextImage method are now fixed
  • PDF to Image conversion is fixed and now working in 9.1.0
  • NullReference exception is resolved when trying to read form field names

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.


Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}