Browse our Products

Aspose.Words for .NET 25.1 Release Notes

Major Features

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

  • Enhanced HTML/SVG Saving: Added IdPrefix and RemoveJavaScriptFromLinks options to both HtmlFixedSaveOptions and SvgSaveOptions.
  • AI Grammar Checking: Enabled grammar checking functionality using OpenAI.
  • Advanced Markdown Options: Added options to set image resolution and OfficeMath output mode in MarkdownSaveOptions.

Full List of Issues Covering all Changes in this Release

Expand to view the full list of issues.
KeySummaryCategory
WORDSNET-27644Support paragraph indention and spacingNew Feature
WORDSNET-26233Width of tables incorrect on rendering to PDFNew Feature
WORDSNET-18822CellFormat.HorizontalMerge reduces the cell’s widthNew Feature
WORDSNET-21970Wrong formatting of tables in print outputNew Feature
WORDSNET-27277Consider adding an option to specify image id prefix upon saving document to SVG and HtmlFixedNew Feature
WORDSNET-27592Rendering of histograms with the specified bin sizeNew Feature
WORDSNET-27524Add support for text shaping in HtmlFixedNew Feature
WORDSNET-27520Remove JavaScript from output HTML when converting DOCX to Fixed-HTMLNew Feature
WORDSNET-27646Consider adding property to set OfficeMath output mode in MarkdownSaveOptionsNew Feature
WORDSNET-27551LINQ inside Content ControlNew Feature
WORDSNET-27571Add possibility to translate text using OpenAI generative language modelNew Feature
WORDSNET-26339DOCX to PDF: Text gets distorted in resultant fileEnhancement
WORDSNET-27133DropCap is placed improperly in PDF page logical structure orderEnhancement
WORDSNET-27617RTF to PDF: Content shifted to the left and out of the pageEnhancement
WORDSNET-13434Table’s cell widths are lost after rendering Docx to PdfEnhancement
WORDSNET-20325Word to PDF table formatting issueEnhancement
WORDSNET-22227Text position is changed after DOCX to PDF conversionEnhancement
WORDSNET-27479Table formatting is incorrect after renderingEnhancement
WORDSNET-27674Opacity of the ImageFileComparer controlsEnhancement
WORDSNET-13435Table’s cell widths are changed after rendering DOCX to PDFBug
WORDSNET-19871Table column widths are incorrect im rendered documentBug
WORDSNET-27129Incorrect table breaking across pages causes content flow differencesBug
WORDSNET-22128A generic error occurred in GDI+ while save extracted page to “png” in dockerBug
WORDSNET-27633Incorrect left margin of a floating table exported to HTMLBug
WORDSNET-27634A paragraph is shifted up and is rendered to the right of a table in HTMLBug
WORDSNET-27434ScreenTip with double quote characters corrupts hyperlink’s address in MS WordBug
WORDSNET-27663BuiltInDocumentProperties.Words returns incorrect valueBug
WORDSNET-27627Text from a deleted revision exists after all revisions have been acceptedBug
WORDSNET-27589NullReferenceException is thrown upon building reportBug
WORDSNET-27563English text wrapping is incorrect when Chinese editing language is usedBug
WORDSNET-27675Consider adding property to set image resolution in MarkdownSaveOptionsBug
WORDSNET-27699InvalidOperationException is thrown upon saving document as DOCBug
WORDSNET-27205Underline removed after setting compatibility settingsBug
WORDSNET-27690FileCorruptedException is thrown upon loading DOCX documentBug
WORDSNET-27579LINQ Reporting Engine: Anchor tags not inheriting hyperlink styleBug
WORDSNET-27534IndexOutOfRangeException is thrown upon rendering documentBug
WORDSNET-27499AutoFitToWindow property does not fit content properlyBug
WORDSNET-27701Null ref in DOCX to XLSX conversionBug
WORDSNET-27704Incorrect column width in output XLSXBug
WORDSNET-27645Part of content inserted using DocumentBuilder is outside SDTBug
WORDSNET-27602Time value is not parsed properly upon executing mail mergeBug
WORDSNET-27610Duplicated bookmarks in the documentBug
WORDSNET-27552Wrong list ID upon conversionBug
WORDSNET-27368Part of equation is lost after HTML to DOCX conversionBug
WORDSNET-27384Image orientation is changed after conversion from HTML to DOCX documentBug
WORDSNET-26794Layout problems with vertical Chinese text after conversion to PDFBug
WORDSNET-25524Compare result does not match MS Word outputBug
WORDSNET-26704Document compare accessing Revision.Group performanceBug
WORDSNET-27642InvalidCastException is thrown upon rendering documentBug
WORDSNET-27608Comparison of document with footnote does not match MS Word resultBug
WORDSNET-27532NullReferenceException is thrown upon rendering documentBug
WORDSNET-27670Duplicated hyperlinks are saved as a single relationship in DOCXBug
WORDSNET-27639List labels are not shown in output XLSXBug
WORDSNET-26386Numbering is changed after splitting and rejoining document by pagesBug
WORDSNET-22203Table columns widths are changed after RTF to PDF conversionBug
WORDSNET-27522Part of content is moved to the next pageBug
WORDSNET-27320Replace the compatibility options SuppressTopSpacingWP and NoLeadingBug
WORDSNET-27580Page break inserted if footnote is presentBug
WORDSNET-26116PDF to Markdown converting failsBug
WORDSNET-27662Temporary license hyperlink is forcibly appended to the trial label in venture licensing modeBug
WORDSNET-27624SVG image is rendered improperlyBug
WORDSNET-27660Updating page layout resets Run’s parent node to nulBug
WORDSNET-27497Shape positions change on conversion to HTMLBug
WORDSNET-27661MHTML to PDF: Image not rendered in the outputBug
WORDSNET-24416OutOfMemoryException is thrown upon comparing documentsBug
WORDSNET-27609NotSupportedException is thrown upon loading Json fileBug
WORDSNET-27657FileCorruptedException is thrown upon loading DOCX document in evaluation mode.Bug
WORDSNET-27587Part of the document is lost when converting to PDFBug
WORDSNET-2154990 degrees rotation applied to X-Axis values in rendered documentBug
WORDSNET-21551Divider lines missing for Chart’s X-Axis values in rendered documentBug
WORDSNET-23662Date axis labels are rendered diagonally and overlapBug
WORDSNET-21550Incorrect text wrapping in Chart in rendered documentBug
WORDSNET-27641Redundant borders are shown after renderingBug
WORDSNET-27549Mixed RTL and LTR text is rendered improperlyBug
WORDSNET-27426PAC reports warning in document structure when footnote is percent in the documentBug
WORDSNET-27488Font-family reading does not match MS Word behaviourBug
WORDSNET-27489Table layout is changed after renderingBug
WORDSNET-26579InsertHtml does not apply formatting on RunBug
WORDSNET-27628Error! Unknown document property name in resultant HTML when saving DOCXBug
WORDSNET-27619Styled numbering is exported to Markdown improperlyBug
WORDSNET-27696Characters are not positioned horizontally correctly upon rendering to PDF and XPSBug
WORDSNET-27462Missing data upon mail mergeBug
WORDSNET-27558Text shifted related to the grid on html to pdf conversionBug
WORDSNET-27016DOCX to MD the content below headings is not indentedBug

Public API and Backward Incompatible Changes

This section lists public API changes that were introduced in Aspose.Words 25.1. 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 option HtmlFixedSaveOptions.IdPrefix and SvgSaveOptions.IdPrefix

Related issue: WORDSNET-27277

A new public option IdPrefix has been added in HtmlFixedSaveOptions and SvgSaveOptions classes:

/// <summary>
/// Specifies a prefix that is prepended to all generated element IDs in the output document.
/// Default value is null and no prefix is prepended.
/// </summary>
/// <remarks>
/// If the prefix is specified, it can contain only letters, digits, underscores, and hyphens,
/// and must start with a letter.
/// </remarks>
/// <exception cref="ArgumentException">The value does not meet the requirements specified above.</exception>
public string IdPrefix
{
    get { return mIdPrefix; }
    set
    {
        AssertValidIdPrefix(value);
        mIdPrefix = value;
    }
}

This use case explains how to specify a prefix that is prepended to all generated element IDs in the output HTML document:

This use case explains how to specify a prefix that is prepended to all generated element IDs in the output SVG document:

Related issue: WORDSNET-27520

A new public option RemoveJavaScriptFromLinks has been added in HtmlFixedSaveOptions and SvgSaveOptions classes:

/// Specifies whether JavaScript will be removed from links.
/// Default is <c>false</c>.
/// If this option is enabled, all links containing JavaScript will be replaced with "javascript:void(0)".
/// </summary>
public bool RemoveJavaScriptFromLinks { get; set; }

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

Added possibility to check Grammar using OpenAi

Related issue: WORDSNET-27676

Added a new public method into Aspose.Words.AI.IAiModelText interface:

/// <summary>
/// Checks grammar of the provided document.
/// This operation leverages the connected AI model for checking grammar of document.
/// </summary>
/// <param name="sourceDocument">The document being checked for grammar.</param>
/// <param name="options">Optional settings to control how grammar will be checked.</param>
/// <returns>A new <see cref="Document"/> with checked grammar.</returns>
Document CheckGrammar(Document sourceDocument, CheckGrammarOptions options = null);

Also, added a new public class into Aspose.Words.AI namespace:

/// <summary>
/// Allows to specify various options while checking grammar of a document using AI.
/// </summary>
public class CheckGrammarOptions

This use case explains how to check grammar of a document using OpenAi generative model with revisions:

Added possibility to set image resolution in MarkdownSaveOptions

Related issue: WORDSNET-27675

Added a new public property into Aspose.Words.Saving.MarkdownSaveOptions class:

/// <summary>
/// Specifies the output resolution for images when exporting to Markdown.
/// Default is <c>96 dpi</c>.
/// </summary>
public int ImageResolution

This use case explains how to specify image resolution while exporting to Markdown:

Added possibility to set OfficeMath output mode in MarkdownSaveOptions

Related issue: WORDSNET-27646

Implemented new public member in Aspose.Words.Saving.MarkdownSaveOptions class:

/// <summary>
/// Specifies how OfficeMath will be written to the output file.
/// Default value is <see cref="MarkdownOfficeMathExportMode.Text"/>.
/// </summary>
public MarkdownOfficeMathExportMode OfficeMathExportMode { get; set; }

and corresponding public enumeration in Aspose.Words.Saving namespace:

/// <summary>
/// Specifies how Aspose.Words exports OfficeMath to Markdown.
/// </summary>
public enum MarkdownOfficeMathExportMode

This use case explains how to export OfficeMath as an image to Markdown: