Browse our Products

Aspose.Words for .NET 25.4 Release Notes

Major Features

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

Full List of Issues Covering all Changes in this Release

Expand to view the full list of issues.
KeySummaryCategory
WORDSNET-27516Add JISB4, JISB5 sizes to PaperSizeNew Feature
WORDSNET-27814Support MSO properties during import sectionsNew Feature
WORDSNET-27932Support MSO properties during import columnsNew Feature
WORDSNET-27909Import text structure from MsoHtml as MS Word doesNew Feature
WORDSNET-27851Remove JavaScript from output Float-HTML in HtmlSaveOptionsNew Feature
WORDSNET-27865Add possibility to translate text using Anthropic AINew Feature
WORDSNET-27938Implement new overload for Aspose.Words.Watermark.SetImage method with Stream as parameterNew Feature
WORDSNET-27899Extend IDocumentConverterPlugin to allow loading and saving the PDF document to multiple fixed page formatsEnhancement
WORDSNET-27964Rendering histograms if “Auto” is setEnhancement
WORDSNET-28049WMF metafile is not pretty renderedBug
WORDSNET-28046Unexpected loss of paragraph data and attributes after modifying SDT mapping and custom XMLBug
WORDSNET-28051Colors in WMF metafile are rendered darkerBug
WORDSNET-28019Paragraph structure is imported incorrectly from MsoHtmlBug
WORDSNET-28040Compare result does not match MS Word outputBug
WORDSNET-27907LINQ Reporting Engine - Issue with same-named nested JSON elementsBug
WORDSNET-27942Exception is thrown by MsoHtml importBug
WORDSNET-27821Incorrect conversion of table of equations from DOCX to XLSXBug
WORDSNET-26734HeadingsOutlineLevels does not work if heading paragraph is inside shapeBug
WORDSNET-27929Mathematical Alphanumeric Symbols with outline effects do not renderedBug
WORDSNET-27858EQ field is rendered improperlyBug
WORDSNET-27945NullReferenceException is thrown upon comparing documentsBug
WORDSNET-27859Text is table cell is wrapped improperlyBug
WORDSNET-27845Create styles from selectors with the “:hover” pseudo-class when loading MsoHtmlBug
WORDSNET-27935NullReferenceException is thrown upon rendering documentBug
WORDSNET-27460Content is moved to the next page after renderingBug
WORDSNET-27931DOCX to PDF - Extra blank page in the outputBug
WORDSNET-27889NullReferenceException is thrown upon converting DOCX to DOCBug
WORDSNET-27763Incorrect font selected for Thai textBug
WORDSNET-28036InsertHtml does not apply formatting on RunBug
WORDSNET-28035Value of SDT with data binding is incorrect after comparing documentsBug
WORDSNET-27949Comment range is not preserved after inserting HTMLBug
WORDSNET-27553Text is invisible after rendering ODTBug
WORDSNET-28029Compare works incorrectly with odd and even headersBug
WORDSNET-28021Line is lost after rendering metafileBug
WORDSNET-27991Exception occurs upon loading PDF documentBug
WORDSNET-27912“Unable to allocate pixels for the bitmap.” exception occurs upon loading PDF documentBug
WORDSNET-27992Text glow intensity does not scale correctlyBug
WORDSNET-27987Update licensing system to support asposenetBug
WORDSNET-27951FileCorruptedException is thrown upon loading MHTML documentBug
WORDSNET-26063DOC document is loaded as TXT documentBug
WORDSNET-28023The LoadFormat for the document is parsed as UnknownBug
WORDSNET-27791Table border color is incorrect after importing HTMLBug
WORDSNET-28017Segoe UI Emoji v1.51 is substituted even if it is availabeBug
WORDSNET-27996Signature has evaluation text mark in comment in venture licensing modeBug
WORDSNET-27958Shape coordinates of grouped shape are not correctBug
WORDSNET-27933Marker type is changed after renderingBug
WORDSNET-27971MS Works documents are not detected by Aspose.WordsBug
WORDSNET-27976CryptographicException occurs upon signing document with XmlDsigLevel.XAdEsEpes after calling Certificate.Reset()Bug
WORDSNET-26953Changing page setup does not work as expectedBug
WORDSNET-27716OfficeMath is rendered improperlyBug
WORDSNET-27952FileCorruptedException is thrown upon loading DOCX documentBug
WORDSNET-21429Equation formatting issue during DOCX to PDF conversionBug
WORDSNET-27961NullReferenceException is thrown upon signing ODT document with imageBug
WORDSNET-27985NullReferenceException is thrown upon rendering documentBug
WORDSNET-27959Performance tests failed on 25.3 release branchBug
WORDSNET-27843FileCorruptedException is thrown upon loading ODT documentBug
WORDSNET-27960Document.Compare throws System.InvalidOperationException: NC sync failedBug
WORDSNET-27963NullReferenceException when saving DOCX to TIFFBug
WORDSNET-19052When bookmarks are in nearby table cells, bookmark contents are not inserted correctlyBug
WORDSNET-27706Evaluation watermark is not injected into the document when PDF is converted to FixedPage formats using LowCode.ConverterBug
WORDSNET-27890RowFormat.HeadingFormat must be ignored for nested tables when ExtractPages method is usedBug
WORDSNET-27848ArgumentException is thrown upon inserting HTML with enabled track changesBug
WORDSNET-27896Coordinates of rotated shape are returned differently after 24.12 versionBug
WORDSNET-27897Tables with different column widths get misalignedBug
WORDSNET-27950SVG looks incorrectly after saving document to imageBug
WORDSNET-27636Emphasis marks are lost after renderingBug
WORDSNET-27993Emoji is missed after renderingBug
WORDSNET-27770Shape position is incorrect after rendering ODT documentBug
WORDSNET-27883Merger plugin tests failBug
WORDSNET-27957Saving any word document page in the image file takes around 2 minutesBug
WORDSNET-27983Bookmark is lost after comparing documentsBug
WORDSNET-27799Numbering is lost after using ExtractPages methodBug
WORDSNET-28004<o:p> is handled as an “empty paragraph mark” but this isn’t correct in all casesBug
WORDSNET-22531Page Orientation is changed after HTML to PDF ConversionBug
WORDSNET-16340Paragraph formatting is lost after conversion from MHTML to DOCXBug

Public API and Backward Incompatible Changes

This section lists public API changes that were introduced in Aspose.Words 25.4. 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.

New public paper sizes JisB4 and JisB5 have been added

Related issue: WORDSNET-27516

New public paper sizes JisB4 and JisB5 have been added to PaperSize enum:

/// <summary>
/// 257 x 364 mm.
/// </summary>
JisB4,
/// <summary>
/// 182 x 257 mm.
/// </summary>
JisB5

This use case explains how to use new paper sizes:

Related issue: WORDSNET-27851

A new public option RemoveJavaScriptFromLinks has been added in HtmlSaveOptions class:

/// <summary>
/// Specifies whether JavaScript will be removed from links.
/// Default is <c>false</c>.
/// </summary>
/// <remarks>
/// If this option is enabled, all links containing JavaScript (e.g., links with "javascript:" in the href attribute)
/// will be replaced with "javascript:void(0)". This can help prevent potential security risks, such as XSS attacks.
/// </remarks>
public bool RemoveJavaScriptFromLinks { get; set; }

This use case shows how to specify whether JavaScript will be removed from links:

Added a new overload for Watermark.SetImage with Stream as parameter

Related issue: WORDSNET-27938

The following new overload of Watermark.SetImage has been implemented:

/// <summary>
/// Adds Image watermark into the document.
/// </summary>
/// <param name="imageStream">The stream containing the image data that is displayed as a watermark.</param>
/// <param name="options">Defines additional options for the image watermark.</param>
/// <exception cref="ArgumentNullException">
/// Throws when the path is <c>null</c>.
/// </exception>
/// <remarks>If <see cref="ImageWatermarkOptions"/> is <c>null</c>, the watermark will be set with default options.</remarks>
public void SetImage(Stream imageStream, ImageWatermarkOptions options)

This use case shows how to add Image watermark into the document using stream containing the image data:

Significantly improved the usability of the LowCode API

How to Compare two Word documents using ComparerContext with custom options:

How to Compare Word documents from streams using ComparerContext with custom options:

How to Compare Word documents and export differences as PNG images using file paths and streams:

How to Convert Word documents using streams with load, save options, and export to PNG images:

How to Convert Word documents to PDF, RTF, DOCX (with options), and export to PNG using LowCode API:

How to Perform mail merge from a DataRow using LowCode API:

How to Perform mail merge from a DataTable using LowCode API:

How to Perform mail merge from a stream with a DataRow as data source using LowCode API:

How to Perform mail merge from a stream with a DataTable as data source using LowCode API:

How to Perform mail merge with nested data relations using DataSet:

How to Perform mail merge from a DataTable using LowCode API:

How to Perform mail merge with simple arrays using LowCode API:

How to Generate a mail merge document with nested data relations using DataSet using LowCode API:

How to Generate a document using mail merge regions and DataTable using LowCode API:

How to Execute basic mail merge using string arrays as data source using LowCode API:

How to Generate mail merge output as images from a DataRow using LowCode API:

How to Convert Word mail merge documents to multiple PNG files using DataTable using LowCode API:

How to Generate PNG images from Word mail merge using string arrays using LowCode API:

How to Generate PNG images from Word mail merge with related DataTables using LowCode API:

How to Convert Word mail merge regions to multiple PNGs using DataTable using LowCode API:

How to Generate PNG images from Word mail merge using a single DataRow using LowCode API:

How to Convert Word mail merge results to PNG images using DataTable using LowCode API:

How to Generate PNG images from Word mail merge using parallel arrays using LowCode API:

How to Generate nested mail merge results as PNG images from a DataSet using LowCode API:

How to Convert Word mail merge regions to PNG images using DataTable:

How to Merge multiple Word documents with format preservation and loading/saving options:

How to Merge Word documents from streams with format retention and encryption:

How to Replace text patterns in Word documents using regex:

How to Perform regex text replacement in Word documents using file streams:

How to Replace text in Word documents using file streams:

How to Replace text in Word documents using direct file paths:

How to Perform regex text replacement and generate PNG images from Word documents:

How to Perform regex replacements and export as PNGs from Word document streams:

How to Replace text and generate PNG images from Word streams:

How to Replace text and export as PNG images from Word files:

How to Split a Word document into individual pages using streams:

How to Split a Word document into separate pages by file path:

How to Add a scalable image watermark to Word documents via streams:

How to Add a scaled image watermark to Word documents via file paths:

How to Add colored text watermarks to Word documents via streams:

How to Add colored text watermarks to Word documents via file path:

How to Apply image watermarks when converting Word documents to PNGs:

How to Add scalable image watermarks when converting Word documents to PNG files:

How to Apply colored text watermarks when converting Word documents to PNG via streams:

How to Add colored text watermarks when converting Word documents to PNG images: