Today, I will highlight the major features introduced in Aspose.Words for Java 19.10 release:
Main Maven POM File Automation
We have now added automation code in the Main Maven POM file. When you run this POM file, it will automatically choose the correct JDK version and download the plugin (if needed) for advanced HarfBuzz Shaper based Typography (note that this only works for windows).
Insert Hyperlink Dynamically using LINQ Reporting Engine
You can now insert hyperlinks to your reports dynamically by using the link tags. Syntax of a link tag is defined as follows.
<<link [uri_or_bookmark_expression] [display_text_expression]>>
Here, uri_or_bookmark_expression defines URI or the name of a bookmark within the same document for a hyperlink to be inserted dynamically. This expression is mandatory and must return a non-empty value.
In turn, display_text_expression defines text to be displayed for the hyperlink. This expression is optional. If it is omitted or returns an empty value, then during runtime, a value of uri_or_bookmark_expression is used as display text as well. For more details, refer to the following article:
Inserting Hyperlinks Dynamically
Specify or Detect Document’s Text Direction
Aspose.Words for Java now provides DocumentDirection property in TxtLoadOptions class to detect the text direction (RTL / LTR) in the document. This property sets or gets document text directions provided in DocumentDirection enumeration. The default value is left to right (LTR).
The following code example demonstrates how to detect text direction of the document while importing TXT file.
See also Useful Links
- Aspose.Words for Java Online Documentation – up-to-date documentation containing Programmer’s Guide, Knowledge Base and much more.
- Aspose.Words for Java Product Page
- Install Aspose.Words for Java from Maven
- Aspose.Words for Java API Reference Guide – detailing the publicly exposed classes, methods, properties, constants & interfaces.
- Download Examples at GitHub Repository – we have published our code examples on the social coding website GitHub.com. Anyone could explore the code examples for learning purposes.
Keeping the Aspose tradition, you are welcome to shape the upcoming releases of Aspose.Words for Java API by posting your suggestions and concerns in the Aspose.Words for Java Support Forum.