Xceed Words for .NET V4.0 (Build: 4.0.250103.5744)

Released: Feb 3, 2025

V4.0 (Build: 4.0.250103.5744) での更新項目

機能

  • Xceed Words for .NET now supports .NET 9.
  • Xceed Words for .NET now supports non-Windows environments in a .NET 5+ context. Note that a new dll, named Xceed.DrawingUtils.NET.dll, is required to make this work and should replace System.Drawing or System.Drawing.Common when using Color, Point, RectangleF, Font and similar types.
  • The PDF conversion process now also works in non-Windows OS like Linux. When specific fonts are not installed, the DocX.ConvertToPdf() method can receive those fonts as parameters and use them for the conversion process.
  • Four new methods have been added to format the DocumentElements created off parsed HTML tags.
  • Xceed Words for .NET now ensures precise spacing with improved whitespace cleaning during the HTML-to-Word conversion.
  • The HTML-to-Word conversion process now supports hierarchical structures for “container” tags such as <div> tags with child elements.  
  • The HTML-to-Word conversion process now has expanded style compatibility with the inclusion of underline formatting via the <u> tag.
  • The HTML-to-Word conversion process now displays anchor tags.
  • Merging Documents using MergingOptions.Both will now rename the inserted Document’s styles only if they already exist in the target Document.
  • Document
    • A new method, called RemoveText, can now be used to remove Text in between a starting tag and an ending tag, even when those tags are located in different paragraphs.
    • A new method, called UpdateTrackChangesAuthor, can now be used to change the name of the author that is currently modifying the Document when changes are tracked in said Document.
    • Users can now choose from a range of hashing algorithms to encrypt & secure their passwords.
    • AES-based password encryption is now supported.
    • The tables underlying a Paragraph are now also inserted when inserting said Paragraph.
    • Custom Properties are now displayed properly when created with Xceed Words and converted to PDF using Apryse Webviewer.
    • Container and Paragraph, replacing multiple strings with multiple strings or DocumentElements can now be done in a single method call with the help of the new MultipleStringReplaceTextOptions and MultipleObjectReplaceTextOptions classes.
    • Inserting a Paragraph which contains a Picture no longer results in a NullRefException when retrieving the paragraph.Pictures.Count.
    • An Invalid Cast Exception no longer occurs when adding custom properties.
  • List
    • A new method, called InsertItem(), can now be used to insert a Paragraph at a specific index in a List’s given level.
    • A new method, called InsertListItem(), can now be used to add formatted text at a specific level in a List’s given level.
  • Paragraph
    • The Remove method now offers a new parameter that allows to decide if the Paragraph’s objects (Pictures, Tables & Charts) are kept or removed once that Paragraph is removed.
    • Inserting text with the trackChanges parameter set to true no longer affects performance when many insertions are done.
    • Appending or inserting a page number or a page count when using chain formatting will now update said number or count at the same time as the formatting.
  • Table Row
    • A new method, called ReplacePicture(), can now be used to replace a specific Picture with a new one.
  • PDF Conversion
    • The total number of pages per section is now correctly counted during the conversion process.
    • Table of Contents containing Figure or Caption headings referencing texts located inside of Tables will now be able to update their page numbers properly.
    • Incremental letters will now be used in the resulting PDF document when an alphabetical page count is used in the original Document.
    • Tables will now automatically update their Cells’ Height value so that it accommodates & displays all content properly.
    • Justified paragraphs containing tabulations will now align correctly before and after said tabulations.
    • Wrapped Tables that are located inside of another Table’s Cells are now correctly converted to PDF.
    • The bullet lists now use a known font to display the bullets when not in a Windows environment.
    • Using multi-threading to convert multiple Documents to PDF no longer mixes the Documents’ Pictures.
    • Setting a level 2 ListItem before setting ListItems corresponding to either level 0 or 1 no longer throws an IndexOutOfRangeException.
  • Table
    • Merging Cells now also merges their Borders.
  • Table of Contents
    • The “h”, “o” & “c” switches (“\h”, “\o”, “\c”) are now respected, which means that hyperlinks, Heading styles, as well as “Figure” & “Table” will now also be properly respected.  
    • The Paragraphs that use the “Caption” style will now be considered as valid headers & will thus be added as items in the Table of Contents.

不具合の修正

  • In PDF Conversion, Pictures located in a Fallback section of the ooxml document will no longer throw an invalid format exception.
  • Protected Documents that are using the Advanced Encryption Standard (AES) for password encryption will no longer trigger exceptions when said protection is removed or said Documents are saved.
  • In Document, removing document protection or saving Documents that use passwords starting with “qwerty” will no longer throws an incorrect password exception.
  • Lists numberings no longer break when merging Documents.