We are pleased to announce new version of Aspose.PDF for Java. Aspose.PDF for Java 11.1.0 includes all the features and enhancements introduced in Aspose.PDF for .NET 11.1.0. Now it supports Roman numbers style for heading in PDF documents and allows to add document level JavaScript.

Along with the above-stated enhancements, this release fixes a number of issues reported by our customers in the previous release. Some of these are PDF to PDFA, PDF to TIFF, PDF to PNG, HTML to PDF, PDF to HTML and TimeZone issue. Please check release notes of Aspose.PDF for Java 11.1.0 for the complete list.

The following sections describe some details regarding these newly added features/enhancements.

Using Roman Numbers in TOC Entries

Headings are important parts of any document. Writers always try to make headings more prominent and meaningful to its readers. If there are more than one headings in a document, a writer has several options to organize these headings. One of the most common approaches to organize headings is to write headings in Numbering Style. Aspose.PDF for Java supports the following heading styles. Further details can be found on How to Apply Numbering Style in Heading.

Add Document Level JavaScript

A new property named JavaScript is added in Document class which has JavaScript collection type and provides access to JAvaScript scenarios by its key.

//Add Document level JavaScript
Document doc = new Document();
doc.getJavaScript().set_Item(“func1″,”function func1() { hello(); }”);
doc.getJavaScript().set_Item(“func2”, “function func2() { hello(); }”);
//Remove Document level JavaScript by key
Document doc1 = new Document(“E:/data/Doucment_level_js.pdf”);
System.out.println(“Key ‘func1’ removed “);

Aspose.PDF for Java Resources

The following resources will help you work with Aspose.Pdf for Java: