Browse our Products
Aspose.Words for Python via .NET 25.11 Release Notes
Major Features
There are 72 improvements and fixes in this regular monthly release. The most notable are:
- AI Model Integration: Enhanced the API to allow configuration of AI model service endpoints, including setting custom URLs and request timeouts for greater flexibility in integration.
- Markdown Export: Improved document conversion fidelity by enabling the export of OfficeMath objects into LaTeX format, ensuring compatibility with MarkItDown renderers.
Full List of Issues Covering all Changes in this Release
Expand to view the full list of issues.
- Implement native rendering of PDF radial gradients
- Consider providing a way to specify different printers to be used for colored and black&white pages
- Add public property to get the actual number of printed pages
- Implement a callback interface to control page skipping when printing
- Support MSO properties during import footnotes and endnotes
- Improve rendering of gradient brushes
- Border-radius in HTML tables not preserved upon converting to PDF
- Consider updating github demo code to .NET 6
- Incorrect shapes layout in the document after rendering
- HTML document is loaded as TXT
- Blurred math formula image on Linux
- MHTML to PDF conversion produces invalid characters on Linux
- Negative cell preferred does not match MS Word on loading an RTF document
- Add ability to change default URL of the AI models
- DOCX to PDF - Footer alignment issue
- Pdf2Word, image is duplicated on all pages
- Aspose.Words hangs upon rendering document
- Hangs upon rendering document using Aspose.Words
- DOC to PDF: Tables are misaligned in the output
- DOCM to PDF: Footer table is missing
- Pdf2Word. Memory leak during table detection
- Some characters are missed upon rendering document to HtmlFixed
- Latex output is unreadable in popular Markdown viewers
- Add option to control timeout when requesting AI model
- Document.RemoveBlankPages() doesn’t remove the last blank page
- Xmpeg file is detected as Markdown by FileFormatUtil
- Lists brokes after converting PDF to DOCX
- DOCX to PDF: Content controls appear in grey font color
- PAC reports “Possibly inappropriate use of a ?Note? structure element”
- Lines move up after converting PDF to WORD
- Reword warning message that occurs when JPEG is saved to HtmlFixed
- RTF to DOCX conversion issue
- Changing TextBox.TextBoxWrapMode in model is not detected by document comaparer
- InvalidOperationException when calling UpdatePageLayout() after updating CustomXmlPart and changing namespace URI
- Style of cell’s borders isn’t preserved after DOCX->HTML->DOCX round-trip
- Mobi to Epub conversion fix
- Image isn’t displayed in md file after docx to md conversion
- Import of MsoHtml lists differs from MS Word’s result
- Missed shape text upon conversion to PDF
- Cells’ borders aren’t preserved after DOCX->HTML->DOCX round-trip
- The document round trip causes losing borders
- Import of MsoHtml lists differs from MS Word’s result
- MsoHtml lists differs from MS Word’s result
- MsoHtml lists import differs from MS Word’s result
- Lists in MsoHtml differs from the one from MS Word’s output
- Missed Subtype for header/footer in the PDF/UA-1
- Number of revision returned by Aspose.Words does not match MS Word
- Parent SDT is missing from output file
- The “Revision” style is imported incorrectly from MsoHtml
- EQ field is rendered improperly
- Observe EQ field is rendered improperly with Aspose.Words
- Spacing issue in RTF to PDF conversion
- Aspose.Words hangs upon loading TXT document
- Arabic text converts to mix of Korean and Chinese chars
- InvalidOperationException when saving DOCX after updating CustomXmlPart
- Number of revision returned by Aspose.Words does not match MS Word
- Formatting multi-level list issue
- Incorrect formatting of built-in styles after loading MsoHtml
- Import of MsoHtml lists differs from MS Word’s result
- FileCorruptedException is thrown upon loading WordML document.
- Spaces are rendered incorrect in math formulas after converting to PDF
- Axis labels are rendered improperly and overlap each other
- InvalidOperationException is thrown upon appending document
- Extra page appears during DOCX to PDF conversion
- InsertHtml() renders placeholder text when replacing SDT content in DesignMode
- Acrobat Pro reports “The PDF you are currently viewing does not identify itself as compliant with any standard.” for PDF saved as PdfA4f
- Aspose.Words consumes a lot of CPU and memory when loading a PDF document
- Content of cell is not rendered correctly
- Missed text in tables in specific file
- System.ArgumentException at PdfXRefTable.AddXRefSection
- Distorted PDFs produces word files with first page on all pages
- AW push floating table to next page if it cross footer
Public API and Backward Incompatible Changes
This section lists public API changes that were introduced in Aspose.Words for Python via .NET 25.11. 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.
Added ability to change default URL of the AI models
A new public url option has been added into Aspose.Words.AI.AiModel class.
This use case explains how to change the default URL for AI model:
api_key = system_helper.environment.Environment.get_environment_variable('API_KEY')
model = aw.ai.AiModel.create(aw.ai.AiModelType.GPT_4O_MINI).with_api_key(api_key)
# Default value "https:#api.openai.com/".
model.url = 'https://my.a.com/'Added option to control timeout when requesting AI model
A new public timeout option has been added into Aspose.Words.AI.AiModel class:
This use case explains how to change the default timeout for AI model:
api_key = system_helper.environment.Environment.get_environment_variable('API_KEY')
model = aw.ai.AiModel.create(aw.ai.AiModelType.GPT_4O_MINI).with_api_key(api_key)
# Default value 100000ms.
model.timeout = 250000Added ability to export OfficeMath into Markdown as LaTeX that is compatible with MarkItDown
A new MARK_IT_DOWN value has been added into Aspose.Words.Saving.MarkdownOfficeMathExportMode enumeration.
This use case explains how to export OfficeMath into Markdown as LaTeX that is compatible with MarkItDown:
doc = aw.Document(file_name=MY_DIR + 'Office math.docx')
save_options = aw.saving.MarkdownSaveOptions()
save_options.office_math_export_mode = aw.saving.MarkdownOfficeMathExportMode.MARK_IT_DOWN
doc.save(file_name=ARTIFACTS_DIR + 'MarkdownSaveOptions.ExportOfficeMathAsMarkItDown.md', save_options=save_options)