We are pleased to announce the release of Aspose.Note for Java 2.2.0. This month’s release introduces new features and enhancements along with bug fixes that were reported in our last month’s release. Specifically, the API now supports Microsoft OneNote online file format. In addition, it provides support for adding alternate text for images as well as set different page splitting algorithms. For a detailed list of what is new and fixed, please visit our product release notes section in Aspose.Note for Java documentation.
Java OneNote API – New Features and Enhancements
Support for OneNote Online (SharePoint) File Format: This month’s release of Aspose.Note for Java supports OneNote online file format, known as OneNote SharePoint file format. However, this feature comes with some limitations due to the lack of available specifications for reading such contents. These limitations are:
- Hand written drawings are not supported
- Embedded Files/Images are also not supported
However, we are investigating all possible methods for supporting these and hope to include these in one of nearest releases.
Support for Adding Alternative Text for Image: This month’s release also provides an enhancement where alternative text can be added for image. This can be achieved by setting the AlternativeText property of the Image class using the setAlternativeText method as shown in the following code sample.
Setting Page Splitting Algorithm: A OneNote document may contain a number of images and other documents at locations that cannot be retained while converting the document to other formats. This can result in displacement of such content to next page, for example, if it lies on the page border.
This month’s release empowers users to specify the page splitting algorithm while converting the document to other formats. It can be done using the setPageSplittingAlgorithm method of PdfSaveOptions class that can be set to the following values:
- AlwaysSplitObjectsAlgorithm – Splits objects into several parts at pages’ bottom position
- KeepPartAndCloneSolidObjectToNextPageAlgorithm – Adds objects up to the bottom of the page and clones full object to the next page in case it doesn’t fit in original page
- KeepSolidObjectsAlgorithm – Shifts full object to the next page in case it doesn’t fit in original page
Our documentation article, Setting Page Splitting Algorithm, demonstrates the usage of different page splitting options.
- Documentation – Visit our documentation section for getting started with the API in no time
- API Reference Guide – Gives detailed information about all the namespaces, classes and methods of the API
- Forum Support – Post your queries on Aspose.Note forum to get assistance from our technical support team
- GitHub Examples – Try the ready-to-use examples of the API by downloading from our GitHub repository