Browse our Products
Aspose.Words for Python via .NET 25.9 Release Notes
Major Features
There are 59 improvements and fixes in this regular monthly release. The most notable are:
- Document Loading: Introduced a new RecoveryMode option for greater control when opening corrupted documents.
- Shape & Text Formatting: Enhanced control over shadow effects with the addition of new public properties.
- Markdown Export: Added support for exporting mathematical equations (Office Math) to LaTeX expressions.
Full List of Issues Covering all Changes in this Release
Expand to view the full list of issues.
- Opening of a corrupted document
- Export oMath (OOXML Math) as LaTex based expressions upon converting to MD
- Provide API to set Shadow Color on Shape
- Image resolution different between MS Word and Aspose.Words when converting DOCX to HTML
- All move revisions are marked only as MovedTo and no corresponding MovedFrom revisions appear in the resulting document
- MAUI release build failed with unexpected trimming error after update to Aspose.Words 25.7 from 25.6
- System.ArgumentException : An item with the same key has already been added
- Exception is thrown upon rendering document
- ArgumentException is thrown upon rendering document
- ArgumentException is thrown upon updating fields
- Font Ligature feature may not be applied
- IllegalArgumentException upon convertion to PDF
- Part of repeated text is not recognized as header
- Pattern fill from SVG is rendered inaccurately
- DivideByZeroException is thrown upon rendering document
- Chinese text is invisible after rendering
- Track changes are lost in dropdown content controls mapped to Custom XML when saving DOCX
- Incorrect scaling of the “Date” axis, if major unit is “Year”
- Different spaces between parentheses and colon for chinese symbols
- Chart labels and plot area are rendered incorrectly
- Execution of the ‘PageCount’ property getter leads to infinite program lock in 25.2
- Table borders are improperly imported from RTF
- The footer is moved down using Merger.Merge and KeepSourceLayout
- Table cell background is lost after reading RTF
- Document comparison does not show the hyperlink object change
- Incorrect text position of conversion to pdf
- ArithmeticException is thrown upon rendering document.
- Table layout is changed after converting PDF to DOCX
- Removing FieldListNum is not properly tracked by Aspose.Words
- Removing and adding child nodes to Date SDT produced invalid output
- DOCX to PDF: Text positioning bug
- Shape position changed due to PDF conversion
- Incorrect labels on the X axis of a chart
- WordOpenXMLMinimal output includes document-level protection in protected DOCX
- UpdatePageLayout raises InvalidOperationException
- Error in OCR of png file
- Consider including .NET version in DLL’s file description
- Bidi text is imported incorrectly in SVG
- Incorrect cross-reference stream processing
- Wavy border is rendered incorrectly
- The distance to the axis labels changes after converting to PDF
- Incorrect position of vertical axis title of “Waterfall” chart
- Part of content is missed after importing MHTML
- Exception when reflowing footnote separator
- Create semiannual forecast
- SVG is not imported from HTML
- The HarfBuzz add-on component is missing /guard:cf
- Emphasis are lost for the Chinese characters
- Formula fields are updated improperly
- REF field is not showing error for missed bookmark after updating fields
- Table formatting is broken after comparing document
- UpdateFields() removes form field content in PDF output
- Mail Merge behavior changed
- ArgumentException is thrown upon executing mail merge
- Setting FieldHyperlink.SubAddress to empty string creates a redundant
\lflag with empty value - Text formatting in SVG is not preserved after importing
- DOCX to HTML: Title missing from header in output
- Parentheses are exported improperly from MathML
- Part of content is moved to next page
Public API and Backward Incompatible Changes
This section lists public API changes that were introduced in Aspose.Words for Python via .NET 25.9. 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 for Python via .NET 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.
Introduced a new recovery_mode option for greater control when opening corrupted documents.
A new public option RecoveryMode has been added to LoadOptions class.
This use case explains how to define the recovery mode behavior when loading a document:
load_options = aw.loading.LoadOptions()
load_options.recovery_mode = aw.loading.DocumentRecoveryMode.TRY_RECOVER
doc = aw.Document(file_name=MY_DIR + 'Corrupted footnotes.docx', load_options=load_options)Enhanced control over shadow effects with the addition of new public properties.
A new public properties color and transparency has been added to class ShadowFormat.
This use case explains how to work with Colors and Transparency:
doc = aw.Document(file_name=MY_DIR + 'Shadow color.docx')
shape = doc.get_child(aw.NodeType.SHAPE, 0, True).as_shape()
shadow_format = shape.shadow_format
shadow_format.type = aw.drawing.ShadowType.SHADOW21
shadow_format.color = aspose.pydrawing.Color.red
shadow_format.transparency = 0.8
doc.save(file_name=ARTIFACTS_DIR + 'Shape.ShadowFormatTransparency.docx')Added support for exporting mathematical equations (Office Math) to LaTeX expressions.
A new public enumeration LATEX has been added to MarkdownOfficeMathExportMode has been added:
This use case explains how to export oMath as LaTex based expressions into Markdown:
doc = aw.Document(file_name=MY_DIR + 'Office math.docx')
save_options = aw.saving.MarkdownSaveOptions()
save_options.office_math_export_mode = aw.saving.MarkdownOfficeMathExportMode.LATEX
doc.save(file_name=ARTIFACTS_DIR + 'MarkdownSaveOptions.ExportOfficeMathAsLatex.md', save_options=save_options)