Browse our Products

Aspose.Words for C++ 20.1 Release Notes

Major Features

We have added the following features from Aspose.Words for .NET on this regular monthly release:

  • Implemented support of paragraph rules in footnotes.
  • API to get/set the position of the floating table is exposed.
  • Implemented an ability to check if VbaProject is signed.
  • Added feature to insert IconCaption while using InsertOleObject.

Limitations and API Differences

Aspose.Words for C++ has some differences as compared to its equivalent .NET version of the API. This section contains information about all such functionality that is not available in the current release. The missing features will be added in future releases.

  • The current release does not support cryptography features - it cannot verify, sign, encrypt or decrypt documents.
  • The current release does not support downloading remote resources from the Internet.
  • The current release does not support Metered license.
  • The current release does not support a multipage TIFF format.
  • The current release does not support LINQ and Reporting features.
  • The current release has limited support for database features - C++ does not have common API for DB like .NET System.Data.
  • The current release only supports Microsoft Visual C++ version 2015 or higher and only for the x64 platform.

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
WORDSNET-12444Support an API to check if VBA code is signedNew Feature
WORDSNET-12204Add feature to set/get the positioning of the floating tableNew Feature
WORDSNET-11833Add feature to insert IconCaption while using InsertOleObjectNew Feature
WORDSNET-19366Te insertOleObject IconCaption filenameNew Feature
WORDSNET-18818Make DML image rendering resilient to images with corrupted SVG extensionsEnhancement
WORDSNET-19498Content pushed to previous pages in PDFEnhancement
WORDSNET-11110DOC to PDF conversion issue with table’s layoutEnhancement
WORDSCPP-926About DLLs of Total for C++Bug
WORDSCPP-918The code execution cannot proceed because vcruntime140_1.dll was not foundBug
WORDSNET-19479NullReferenceException occurs upon saving to HtmlFixedBug
WORDSNET-18603Nested shapes overlap cell bordersBug
WORDSNET-19667Paragraph marker changes from not hidden to hidden after document insertBug
WORDSNET-19671DOCX to PDF conversion issue with the content positionBug
WORDSNET-19681IgnoreFields options cause incorrect comparisonBug
WORDSNET-19683Document layout is not preserved after conversion from ODT to a DOCXBug
WORDSNET-19549Word Document to PDF “Attempted to divide by zero”Bug
WORDSNET-19674Lucida Console text metrics do not match MS WordBug
WORDSNET-19601DocumentProperty isLinkToContent fails for Numbers-type using bookmark in DOCX fileBug
WORDSNET-18928Add feature to insert IconCaption and correct icon while using InsertOleObjectBug
WORDSNET-14272DOCX to PDF conversion issue with Khmer fontBug
WORDSNET-19625After conversion to PDF, a part of a table content is wrappingBug
WORDSNET-19659System.OutOfMemoryException occurs upon saving DOCX to PDFBug
WORDSNET-19483DocumentBuilder.EndTable sets wrong font size after PushFont/PopFontBug
WORDSNET-17053Wrong Font for certain Arabic Characters used in PDFBug
WORDSNET-14337DOC to PDF  conversion issue with Khmer fontBug
WORDSNET-17864Sort out fr-CH, de-CH and uk-UA formatting on .NET 4.0Bug
WORDSNET-18378Watermark (Korean) is incorrect and bolder in MS WordBug
WORDSNET-16766Incorrect PDF Rendition of Arabic textBug
WORDSNET-19567Extra blank space after each row in the table in PDFBug
WORDSNET-19577Converting DOCX to PDF Mirror Margins doesn’t translateBug
WORDSNET-19495System.NullReferenceException occurs upon saving DOCX to PDFBug
WORDSNET-19588One-page Word document turned into a two-page PDF documentBug
WORDSNET-19482Document.UpdateFields does not update the formula fieldsBug
WORDSNET-19598Content position is changed after conversion from DOCX to PDFBug
WORDSNET-19713ExampleManager fails while parse BaseWebExtensionCollection tagsBug
WORDSNET-19668MS Word 2016 displays Emoji as square boxesBug
WORDSNET-19729Chart with an extra small step. The precision of “float” is insufficient, “double” must be usedBug
WORDSNET-19622DocumentBuilder.InsertStyleSeparator does not work when using the style from templateBug
WORDSNET-19391Document.UpdateFields does not update formula fieldBug
WORDSNET-19687Documentation on how Aspose.Words caches user data/files for performanceBug
WORDSNET-19746Rendering of APS containing shaping information to XPS is not correctBug
WORDSNET-19695Border of SmartArt is lost after repeated save and load operationsBug
WORDSNET-19753Fix ApiTests.NetStandard2.0 project on JenkinsBug
WORDSNET-19607Endnote not displaying in output PDF fileBug
WORDSNET-19516DOCM is corrupted after conversion from DOCBug
WORDSNET-15450Watermark position issue in resultant PDFBug
WORDSNET-19521Embedded file (.exe) is lost after re-saving DOCBug
WORDSNET-19609DOCX to PDF conversion issue with StructuredDocumentTag renderingBug
WORDSNET-19610Text of textbox is lost in output PDFBug
WORDSNET-19558Table alignment and overlapping problem in PDFBug
WORDSNET-19634Infinite loop during the call of Document.UpdatePageLayoutBug
WORDSNET-18740Document.Save hangs while saving document’s page to JPEGBug
WORDSNET-19620Specifying ImportFormatMode.KeepDifferentStyles causes AppendDocument to throw an exceptionBug
WORDSNET-18916Problem with rendered PDF with OTF font in Mac OS Preview appBug
WORDSNET-19331Document.Save generates big size HtmlFixed documentBug
WORDSNET-19637A line moves to the next page in PDFBug
WORDSNET-13624DOC to PDF conversion issue with page numberBug
WORDSNET-10391Text is overlapped after conversion from DOC to PDFBug
WORDSNET-8338Extra space is rendered between text and horizontal lineBug
WORDSNET-4210Table row height is changed during renderingBug
WORDSNET-19545Appending Document causes indent issuesBug
WORDSNET-14050DOC to PDF conversion issue with RTL text directionBug

Public API and Backward Incompatible Changes

This section lists public API changes that were introduced in Aspose.Words 20.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 a new public property VbaProject.IsSigned

Related issue: WORDSNET-12444 Added a new public property VbaProject.IsSigned:

/// <summary>
/// Shows whether the VbaProject is signed or not.
/// </summary>
public bool IsSigned

Use Case:

Document doc = new Document(@"source.docm"); 
if (doc.VbaProject.IsSigned)
 
  // do smth..

Added setters for floating table properties

WORDSNET-12204. Added setters for following table properties: RelativeHorizontalAlignment, AbsoluteHorizontalDistance, RelativeVerticalAlignment, AbsoluteVerticalDistance.

These properties allow setting floating table position.

Use Case:

Document doc = new Document("some doc"); 
Table table = document.FirstSection.Body.Tables\[0\];
table.AbsoluteHorizontalDistance = 10;
 // sets absolute table horizontal position at 10pt.
table.RelativeVerticalAlignment = VerticalAlignment.Center;
 // sets vertical table position to center of entity specified by Table.VerticalAnchor.

SaveOptions.ColorMode property moved to FixedPageSaveOptions class

Related issue: WORDSNET-19635 SaveOptions.ColorMode public property moved to FixedPageSaveOptions class.

Supported dynamic bookmark insertion for LINQ Reporting Engine

Issue: WORDSNET-19648 The “Inserting Bookmarks Dynamically” section of the engine’s documentation was added to describe the change.

WORDSNET-18928 - Add feature to insert IconCaption and correct icon while using InsertOleObject

A new public method has been added to the DocumentBuilder class:

/// <summary>
/// Inserts an embedded or linked OLE object as icon into the document. 
/// Allows to specify icon file and caption. Detects OLE object type using file extension. 
/// </summary>
/// <param name="fileName">Full path to the file.</param>
/// <param name="isLinked">
/// If true then linked OLE object is inserted otherwise embedded OLE object is inserted.
/// </param>/// <param name="iconFile">
/// Full path to the ICO file. 
/// If the value is null or the ICO file is not readable, Aspose.Words will use a predefined image.
/// </param>/// <param name="iconCaption">Icon caption.</param>/// <returns>Shape node containing Ole object and inserted at the current Builder position.</returns>
public Shape InsertOleObjectAsIcon(string fileName, bool isLinked, string iconFile, string iconCaption)

Use Case. Explains how to inserts an embedded or linked OLE object as an icon into the document:

Document doc = new Document();DocumentBuilder builder = new DocumentBuilder(doc);
Shape shape = builder.InsertOleObjectAsIcon("C:\\embedded.xlsx", false, "C:\\icon.ico", "My embedded file");
doc.Save("C:\\output.docx");