Browse our Products
Aspose.Words for C++ 23.3 Release Notes
Major Features
There are 78 improvements and fixes in this regular monthly release. The most notable are:
- Extended set of public properties for working with fill colors.
- Implemented rendering of radial gradients with SkiaSharp native shader for .NET Standard.
- Added support of InvertIfNegative property for bar chart rendering.
- Implemented saving progress notifications for MOBI and AZW3 formats.
- Added an ability to specify whether to adjust sentence and word spacing automatically upon document import.
Full list of changes
Expand to view the full list of issues, covering all changes in this release.
- Add ability to determine if font color is overridden for Inline node and for paragraph break character
- LINQ Reporting Engine - Column chart does not support different color for negative value
- Allow ImportFormatOptions.AdjustSentenceAndWordSpacing option in API
- Provide public API to manipulate chart gridlines
- Add Fill.ThemeColor option
- Implement plugin license support
- Implement rendering of radial gradients with SkiaSharp native shader for .NET Standard
- Enable SaveOptions.ProgressCallback when saving to MOBI
- Enable SaveOptions.ProgressCallback when saving to AZW3
- Implement rendering of a radial gradient into XPS using XPS radial gradient brush
- Add navigation to generated AZW3 documents
- Consider preserving TOC formatting upon exporting to HTML formats
- Preserve TOC Page numbers during Word to HTML to Word round-trip
- Unsupported BMP - Images are not displayed after loading HTML
- Text on metafile is rendered improperly
- XHTML to PDF conversion issue
- Symbols overlap after rendering
- Additional datapoint is rendered in the line chart
- Czech localized heading style names are not handled when updating STYLEREF fields
- Font size is incorrect after rendering text with revision
- Text orientation is turned to vertical after converting to HTML
- Metafile is rendered improperly in .NET Standard
- PDF file can’t be opened
- Image is rendered improperly in .NET Standard version of Aspose.Words
- Spacing between symbols is incorrect after rendering
- InsertField method throws NullReferenceException when using IF field
- FileCorruptedException is thrown upon loading encrypted DOCX document
- A redundant empty page is produced when render Hebrew document
- Delete paragraph fails when paragraph is inside SDT
- Significant performance decrease upon conversion OfficeMath to string
- HTML to MD: Backslash is appended in name of image in resultant file
- Table with merged cells is recognized improperly
- GroupShape does not render correctly in fixed file format
- FileCorruptedException is thrown upon loading RTF document
- Effects for “thin” elements are not rendered
- Comparison displays wrong document revision
- Footer shows a delete revision after comparing documents
- FileCorruptedException is thrown upon loading DOC document
- Document comparison removes highlighted text
- NullReferenceException is thrown upon comparing documents
- ArgumentNullException is thrown upon calling UpdatePageLayout
- FileCorruptedException is thrown upon loading DOCX document
- Watermark image is missed from document after save to Iso29500_2008_Strict DOCX
- Aspose.Words does not include an empty heading paragraph with numbering into the TOC
- Effects applied to grid lines are not rendered
- Content is pushed down and overlaps footnotes
- Colors are inverted after importing PDF document
- Doted background is rendered in metafile
- FileCorruptedException on loading MHTML
- NullReferenceException on converting DOCX
- Trendline label is not rendered
- Text behind images in PDF conversion
- List item tabs are rendered bigger than required
- List tab stop is incorrect after rendering
- Part of TC field becomes visible after conversion to RTF
- Allow creating DML Shape from public API
- Shape position and size is changed after open/save document
- HTML to MD: Table of content does not lead to content
- PdfCompositeEncodingConvertor throws ArgumentOutOfRangeException
- Arabic text in SVG is rendered inaccurately in case of font fallback
- Problem loading document
- HTM loading issue
- ReportingEngine, when reading Async Method throws exception in the document
- Bookmark from headings are not created saving to PDF
- XML to PDF incorrect formatting
- Empty output document after converting from CHM to DOCX
- Exception is thrown while saving DOCX to image format under Linux
- OutOfMemoryException throws when document is saved
- Table Front style issue while converting Word to HTML to word document
- HTML to PDF conversion generates incorrect output
- InvalidOperationException on UpdatePageLayout after inserting HTML via DocumentBuilder
- Tables width increase beyond the Page width during Word to HTML to Word round-trip
- The use of ExportListLabels.AsInlineText value for HtmlOptions.ExportListLabels option can raise System.InvalidOperationException
- Problems to covert html containing element located in absolute position into PDF
- The delta character in a math formula is replaced with the V character
- NullReferenceException is thrown upon rendering document
- Image elements in absolute positions in HTML are not displayed in Word
- Aspose.Word .NET Core Performance Problem
Public API and Backward Incompatible Changes
This section lists public API changes that were introduced in Aspose.Words 23.3. 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 properties for working with fill colors
A new public properties ForeThemeColor and BackThemeColor has been added to the Fill class:
/// Gets a ThemeColor object that represents the foreground color for the fill.
ASPOSE_WORDS_SHARED_API Aspose::Words::Themes::ThemeColor get_ForeThemeColor();
/// Sets a ThemeColor object that represents the foreground color for the fill.
ASPOSE_WORDS_SHARED_API void set_ForeThemeColor(Aspose::Words::Themes::ThemeColor value);
/// Gets a ThemeColor object that represents the background color for the fill.
ASPOSE_WORDS_SHARED_API Aspose::Words::Themes::ThemeColor get_BackThemeColor();
/// Sets a ThemeColor object that represents the background color for the fill.
ASPOSE_WORDS_SHARED_API void set_BackThemeColor(Aspose::Words::Themes::ThemeColor value);
A new public properties ForeTintAndShade and BackTintAndShade has been added to the Fill class:
/// Gets or sets a double value that lightens or darkens the foreground color.
///
/// The allowed values are within the range from -1 (the darkest) to 1 (the lightest) for this property.
/// Zero (0) is neutral. Attempting to set this property to a value less than -1 or more than 1
/// results in <see cref="System::ArgumentOutOfRangeException">ArgumentOutOfRangeException</see>.
ASPOSE_WORDS_SHARED_API double get_ForeTintAndShade();
/// Setter for Aspose::Words::Drawing::Fill::get_ForeTintAndShade
ASPOSE_WORDS_SHARED_API void set_ForeTintAndShade(double value);
/// Gets or sets a double value that lightens or darkens the background color.
///
/// The allowed values are within the range from -1 (the darkest) to 1 (the lightest) for this property.
/// Zero (0) is neutral. Attempting to set this property to a value less than -1 or more than 1
/// results in <see cref="System::ArgumentOutOfRangeException">ArgumentOutOfRangeException</see>.
ASPOSE_WORDS_SHARED_API double get_BackTintAndShade();
/// Setter for Aspose::Words::Drawing::Fill::get_BackTintAndShade
ASPOSE_WORDS_SHARED_API void set_BackTintAndShade(double value);
Use Case
This use case explains how to work with theme colors and tint and shade. Please see the following code example to learn how to use such properties:
System::SharedPtr<Aspose::Words::Document> doc = System::MakeObject<Aspose::Words::Document>(u"in.docx");
System::SharedPtr<Aspose::Words::Drawing::Fill> shapeFill = (System::AsCast<Aspose::Words::Drawing::Shape>(doc->GetChild(Aspose::Words::NodeType::Shape, 0, true)))->get_Fill();
// Gets and sets the value of theme colors.
if (shapeFill->get_ForeThemeColor() == Aspose::Words::Themes::ThemeColor::Accent1)
{
shapeFill->set_ForeThemeColor(Aspose::Words::Themes::ThemeColor::Dark1);
}
if (shapeFill->get_BackThemeColor() == Aspose::Words::Themes::ThemeColor::Accent2)
{
shapeFill->set_BackThemeColor(Aspose::Words::Themes::ThemeColor::Dark2);
}
System::SharedPtr<Aspose::Words::Drawing::Fill> textFill1 = doc->get_FirstSection()->get_Body()->get_FirstParagraph()->get_Runs()->idx_get(0)->get_Font()->get_Fill();
// Gets and sets the tint value.
if (textFill1->get_ForeTintAndShade() == 0)
{
textFill1->set_ForeTintAndShade(0.5);
}
System::SharedPtr<Aspose::Words::Drawing::Fill> textFill2 = doc->get_FirstSection()->get_Body()->get_FirstParagraph()->get_Runs()->idx_get(1)->get_Font()->get_Fill();
// Gets and sets the shade value.
if (textFill2->get_ForeTintAndShade() == 0)
{
textFill2->set_ForeTintAndShade(-0.2);
}
doc->Save(u"out.docx");
Added public properties HasMajorGridlines and HasMinorGridlines to ChartAxis class
The following public properties have been added to the Aspose.Words.Drawing.Charts.ChartAxis class:
/// Gets a flag indicating whether the axis has major gridlines.
ASPOSE_WORDS_SHARED_API bool get_HasMajorGridlines();
/// Sets a flag indicating whether the axis has major gridlines.
ASPOSE_WORDS_SHARED_API void set_HasMajorGridlines(bool value);
/// Gets a flag indicating whether the axis has minor gridlines.
ASPOSE_WORDS_SHARED_API bool get_HasMinorGridlines();
/// Sets a flag indicating whether the axis has minor gridlines.
ASPOSE_WORDS_SHARED_API void set_HasMinorGridlines(bool value);
Use Case
This use case explains how to show chart gridlines. Please see the following code example to learn how to use such properties:
System::SharedPtr<Aspose::Words::Document> doc = System::MakeObject<Aspose::Words::Document>();
System::SharedPtr<Aspose::Words::DocumentBuilder> builder = System::MakeObject<Aspose::Words::DocumentBuilder>(doc);
// Insert a chart.
System::SharedPtr<Aspose::Words::Drawing::Shape> shape = builder->InsertChart(Aspose::Words::Drawing::Charts::ChartType::Column, 432, 252);
System::SharedPtr<Aspose::Words::Drawing::Charts::ChartAxis> xAxis = shape->get_Chart()->get_AxisX();
System::SharedPtr<Aspose::Words::Drawing::Charts::ChartAxis> yAxis = shape->get_Chart()->get_AxisY();
// Show gridlines.
xAxis->set_HasMajorGridlines(true);
xAxis->set_HasMinorGridlines(true);
yAxis->set_HasMajorGridlines(true);
yAxis->set_HasMinorGridlines(true);
doc->Save(u"Gridlines.docx");
Added public property ImportFormatOptions.AdjustSentenceAndWordSpacing
The following public property was added to the Aspose.Words.ImportFormatOptions class:
/// Gets a boolean value that specifies whether to adjust sentence and word spacing automatically.
/// The default value is <c>%false</c>.
ASPOSE_WORDS_SHARED_API bool get_AdjustSentenceAndWordSpacing() const;
/// Sets a boolean value that specifies whether to adjust sentence and word spacing automatically.
/// The default value is <c>%false</c>.
ASPOSE_WORDS_SHARED_API void set_AdjustSentenceAndWordSpacing(bool value);
Use Case
This use case explains how to use the AdjustSentenceAndWordSpacing option. Please see the following code example:
System::SharedPtr<Aspose::Words::Document> srcDoc = System::MakeObject<Aspose::Words::Document>();
System::SharedPtr<Aspose::Words::Document> dstDoc = System::MakeObject<Aspose::Words::Document>();
System::SharedPtr<Aspose::Words::DocumentBuilder> builder = System::MakeObject<Aspose::Words::DocumentBuilder>(srcDoc);
builder->Write(u"Dolor sit amet.");
builder = System::MakeObject<Aspose::Words::DocumentBuilder>(dstDoc);
builder->Write(u"Lorem ipsum.");
System::SharedPtr<Aspose::Words::ImportFormatOptions> options = System::MakeObject<Aspose::Words::ImportFormatOptions>();
options->set_AdjustSentenceAndWordSpacing(true);
builder->InsertDocument(srcDoc, Aspose::Words::ImportFormatMode::UseDestinationStyles, options);
System::Console::WriteLine(dstDoc->get_FirstSection()->get_Body()->get_FirstParagraph()->GetText());
/* This code produces the following output (please note the additional ' ' space character just before pasted content):
Lorem ipsum. Dolor sit amet.
*/
Added public property TextBox.NoTextRotation
The following public property was added to the Aspose.Words.Drawing.TextBox class:
/// Gets a boolean value indicating either text of the TextBox should not rotate when the shape is rotated.
///
/// The default value is <c>%false</c>
ASPOSE_WORDS_SHARED_API bool get_NoTextRotation();
/// Sets a boolean value indicating either text of the TextBox should not rotate when the shape is rotated.
///
/// The default value is <c>%false</c>
ASPOSE_WORDS_SHARED_API void set_NoTextRotation(bool value);
Use Case
This use case explains how to use the NoTextRotation option. Please see the following code example:
System::SharedPtr<Aspose::Words::DocumentBuilder> builder = System::MakeObject<Aspose::Words::DocumentBuilder>();
System::SharedPtr<Aspose::Words::Drawing::Shape> shape = builder->InsertShape(Aspose::Words::Drawing::ShapeType::Ellipse, 20, 20);
shape->get_TextBox()->set_NoTextRotation(true);
Enabled saving progress notifications for MOBI and AZW3 formats
The SaveOptions.ProgressCallback is now also invoked when saving to Mobi or AZW3.
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 Metered license.
- The current release does not support LINQ and Reporting features.
- The current release does not support OpenGL 3D Shapes rendering.
- The current release does not support loading PDF documents.
- The current release has limited support for database features - C++ doesn’t have common API for DB like .NET System.Data.
- The current release supports Microsoft Visual C++ version 2017 or higher.
- The current release supports GCC 6.3 or higher and Clang 3.9.1 or higher on Linux and only for the x86_x64 platform.
- The current release supports macOS Big Sur or later (11.5+) for 64-bit Intel Mac platform.