Browse our Products

Aspose.Words for Java 25.2 Release Notes

Major Features

There are 116 improvements and fixes in this regular monthly release. The most notable are:

  • Update HarfBuzz Update HarfBuzz to 10.2.0 and downgrade Legacy HarfBuzz to 6.0.0.
  • List Management: Introduced the ListCollection.AddSingleLevelList() method for improved list handling.
  • Font Features: Added the Font.NumberSpacing property for enhanced typographic control.
  • AI-Powered Text Processing: Enabled text summarization using Anthropic generative language models.
  • Expanded Format Support: Added compatibility for Microsoft Works document format.
  • PDF Improvements: Enhanced PDF logical structure with support for TOA, BIBLIOGRAPHY, and INDEX fields.

Full List of Issues Covering all Changes in this Release

Public API and Backward Incompatible Changes

This section lists public API changes that were introduced in Aspose.Words 25.2. It includes not only new and obsoleted public methods, but also a description of any changes in the behavior behind the scenes in Aspose.Words which may affect existing code. Any behavior introduced that could be seen as regression and modifies the existing behavior is especially important and is documented here.

Added new public method ListCollection.AddSingleLevelList()

Related issue: WORDSNET-26149

A new public method AddSingleLevelList() has been added to ListCollection class:

/// <summary>
/// Creates a new single level list based on the predefined template and adds it to the list collection in the document.
/// </summary>
public List AddSingleLevelList(ListTemplate listTemplate)

This use case explains how to work with AddSingleLevelList() method:

Added new public property Font.NumberSpacing

Related issue: WORDSNET-26904

A new public method NumberSpacing has been added to Font class:

/// <summary>
/// Gets or sets the spacing type of the numeral being displayed.
/// </summary>
public NumSpacing NumberSpacing { get; set; }

This use case shows how to set the spacing type of the numeral:

Added possibility to summarize text using Anthropic generative language models

Related issue: WORDSNET-27576

Implemented new public class in Aspose.Words.AI namespace:

/// <summary>
/// An abstract class representing the integration with Anthropic’s AI models within the Aspose.Words.
/// </summary>
public abstract class AnthropicAiModel : AiModel, IAiModelText
and added new enumerations into Aspose.Words.AI.AiModelType enumeration:

/// <summary>
/// Claude 3.5 Sonnet generative model type.
/// </summary>
Claude35Sonnet,

/// <summary>
/// Claude 3.5 Haiku generative model type.
/// </summary>
Claude35Haiku,

/// <summary>
/// Claude 3 Opus generative model type.
/// </summary>
Claude3Opus,

/// <summary>
/// Claude 3 Sonnet generative model type.
/// </summary>
Claude3Sonnet,

/// <summary>
/// Claude 3 Haiku generative model type.
/// </summary>
Claude3Haiku

So far implemented only method Aspose.Words.AI.IAiModelText.Summarize

Added support for MicrosoftWorks document format

Related issue: WORDSNET-21706

Implemented basic MS Works parser that now allow properly detect MS Works documents and load text content.

Added new public enum members:

LoadFormat.MsWorks
ApplicationType.MsWorks