We are pleased to announce the release of a new version of Aspose.Pdf for Java which includes some new features and fixes for the issues reported earlier. The Excel Worksheets conversion to PDF, XML to PDF conversion and Attachments feature are remarkably improved. Nevertheless, there have been some enhancements in terms of memory management while adding image files to PDF document.
The attached .zip file contains three libraries, so the users of the JDK 1.4 must use aspose.pdf.jdk14.jar and the users of the JDK 5 or 6 can either use aspose.pdf.jdk15.jar or aspose.pdf.jdk16.jar.
What's New?
The main new features added in this version:
- Some new methods in XMLDocument class are added
- Image resources from URL can be added
What's improved?
- Performance of this release is 4x-6x times better than previous version 2.5.0, while images are placed inside PDF sections or embedded as attachments.
- When using JDK 5 and JDK 6, the new version finds the system fonts folder automatically and there is no need to specify it manually as required with JDK 4.
What's Fixed?
The main bugs fixed are listed as following:
- 13383 - XLS to PDF conversion issue with Aspose.Pdf for Java
- 14981 - Bottom border to the table is not appearing in Excel to PDF conversion
- 15164 - Images with dimension equal or greater than 1024x768 are causing issue
- 15185 - Error adding 1024x768 images
- 15982 - Doesn't work when desired resources placed on network path like a \\host\share\image.jpg
- 15985 - Don't able to attach file to pdf document
- 15992 - Large text or binary attachments causes program halt
- 15995 - Can't attach document as stream
- 15996 - Adding images and imageInfo throught XML API causes exceptions
- 15997 - Doesn't work with file resources
- 16244 - Image resources can't be added from URL
- 16229 - Documents attached other XML API has incorrect size and content
- 16518 - XmlDocument does not load or save documents
How to specify the system fonts folder path
When using JDK 1.4, you must manually set path to windows fonts catalog by setting system property i.e. aspose.pdf.fontpath or by calling the Pdf.setTruetypeFontDirectoryPath(); method. However when using JDK 5 and JDK 6, the product automatically finds the system fonts folder.
For example:
java -Daspose.pdf.fontpath=c:\windows\fonts -cp aspose.pdf.jdk14.jar;. your.entry.Point or by using the setTruetypeFontDirectoryPath() method:
//..........
pdf.setTruetypeFontDirectoryPath("c:\\windows\\fonts");