Browse our Products
Aspose.Words for Python via .NET 25.4 Release Notes
Major Features
There are 74 improvements and fixes in this regular monthly release. The most notable are:
- Paper Size Options: Added JisB4 and JisB5 paper size support.
- HTML Output Control: Added the HtmlSaveOptions.RemoveJavaScriptFromLinks option.
- Watermark Enhancement: Added a new overload for Watermark.SetImage with Stream as parameter.
Full List of Issues Covering all Changes in this Release
Expand to view the full list of issues.
- Add JISB4, JISB5 sizes to PaperSize
- Support MSO properties during import sections
- Support MSO properties during import columns
- Import text structure from MsoHtml as MS Word does
- Remove JavaScript from output Float-HTML in HtmlSaveOptions
- Add possibility to translate text using Anthropic AI
- Implement new overload for Aspose.Words.Watermark.SetImage method with Stream as parameter
- Extend IDocumentConverterPlugin to allow loading and saving the PDF document to multiple fixed page formats
- Rendering histograms if “Auto” is set
- WMF metafile is not pretty rendered
- Unexpected loss of paragraph data and attributes after modifying SDT mapping and custom XML
- Colors in WMF metafile are rendered darker
- Paragraph structure is imported incorrectly from MsoHtml
- Compare result does not match MS Word output
- LINQ Reporting Engine - Issue with same-named nested JSON elements
- Exception is thrown by MsoHtml import
- Incorrect conversion of table of equations from DOCX to XLSX
- HeadingsOutlineLevels does not work if heading paragraph is inside shape
- Mathematical Alphanumeric Symbols with outline effects do not rendered
- EQ field is rendered improperly
- NullReferenceException is thrown upon comparing documents
- Text is table cell is wrapped improperly
- Create styles from selectors with the “:hover” pseudo-class when loading MsoHtml
- NullReferenceException is thrown upon rendering document
- Content is moved to the next page after rendering
- DOCX to PDF - Extra blank page in the output
- NullReferenceException is thrown upon converting DOCX to DOC
- Incorrect font selected for Thai text
- InsertHtml does not apply formatting on Run
- Value of SDT with data binding is incorrect after comparing documents
- Comment range is not preserved after inserting HTML
- Text is invisible after rendering ODT
- Compare works incorrectly with odd and even headers
- Line is lost after rendering metafile
- Exception occurs upon loading PDF document
- “Unable to allocate pixels for the bitmap.” exception occurs upon loading PDF document
- Text glow intensity does not scale correctly
- Update licensing system to support asposenet
- FileCorruptedException is thrown upon loading MHTML document
- DOC document is loaded as TXT document
- The LoadFormat for the document is parsed as Unknown
- Table border color is incorrect after importing HTML
- Segoe UI Emoji v1.51 is substituted even if it is availabe
- Signature has evaluation text mark in comment in venture licensing mode
- Shape coordinates of grouped shape are not correct
- Marker type is changed after rendering
- MS Works documents are not detected by Aspose.Words
- CryptographicException occurs upon signing document with XmlDsigLevel.XAdEsEpes after calling Certificate.Reset()
- Changing page setup does not work as expected
- OfficeMath is rendered improperly
- FileCorruptedException is thrown upon loading DOCX document
- Equation formatting issue during DOCX to PDF conversion
- NullReferenceException is thrown upon signing ODT document with image
- NullReferenceException is thrown upon rendering document
- Performance tests failed on 25.3 release branch
- FileCorruptedException is thrown upon loading ODT document
- Document.Compare throws System.InvalidOperationException: NC sync failed
- NullReferenceException when saving DOCX to TIFF
- When bookmarks are in nearby table cells, bookmark contents are not inserted correctly
- RowFormat.HeadingFormat must be ignored for nested tables when ExtractPages method is used
- ArgumentException is thrown upon inserting HTML with enabled track changes
- Coordinates of rotated shape are returned differently after 24.12 version
- Tables with different column widths get misaligned
- SVG looks incorrectly after saving document to image
- Emphasis marks are lost after rendering
- Emoji is missed after rendering
- Shape position is incorrect after rendering ODT document
- Merger plugin tests fail
- Saving any word document page in the image file takes around 2 minutes
- Bookmark is lost after comparing documents
- Numbering is lost after using ExtractPages method
- <o:p> is handled as an “empty paragraph mark” but this isn’t correct in all cases
- Page Orientation is changed after HTML to PDF Conversion
- Paragraph formatting is lost after conversion from MHTML to DOCX
Public API and Backward Incompatible Changes
This section lists public API changes that were introduced in Aspose.Words for Python via .NET 25.4. 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.
New public paper sizes JisB4 and JisB5 have been added
New public paper sizes JisB4 and JisB5 have been added to PaperSize enum:
doc = aw.Document(file_name=MY_DIR + 'Big document.docx')
page_setup = doc.first_section.page_setup
# Set the paper size to JisB4 (257x364mm).
page_setup.paper_size = aw.PaperSize.JIS_B4
# Alternatively, set the paper size to JisB5. (182x257mm).
page_setup.paper_size = aw.PaperSize.JIS_B5
Added new public option HtmlSaveOptions.remove_java_script_from_links
A new public option remove_java_script_from_links has been added in HtmlSaveOptions class.
This use case shows how to specify whether JavaScript will be removed from links:
doc = aw.Document(file_name=MY_DIR + 'JavaScript in HREF.docx')
save_options = aw.saving.HtmlSaveOptions()
save_options.remove_java_script_from_links = True
doc.save(file_name=ARTIFACTS_DIR + 'HtmlSaveOptions.RemoveJavaScriptFromLinks.html', save_options=save_options)
Added a new overload for Watermark.SetImage with Stream as parameter
The new overload of Watermark.set_image has been implemented.
This use case shows how to add Image watermark into the document using stream containing the image data:
doc = aw.Document()
# Modify the image watermark's appearance with an ImageWatermarkOptions object,
# then pass it while creating a watermark from an image file.
image_watermark_options = aw.ImageWatermarkOptions()
image_watermark_options.scale = 5
with system_helper.io.FileStream(IMAGE_DIR + 'Logo.jpg', system_helper.io.FileMode.OPEN, system_helper.io.FileAccess.READ) as image_stream:
doc.watermark.set_image(image_stream=image_stream, options=image_watermark_options)
doc.save(file_name=ARTIFACTS_DIR + 'Document.ImageWatermarkStream.docx')