Spire.Doc for Python 13.12.0 has optimized and enhanced the API

Spire.Doc for Python 13.12.0 has optimized and enhanced the API

2025-12-08 09:02:06

We’re pleased to announce the release of Spire.Doc for Python 13.12.0. This version delivers significant API enhancements, including fine-grained format control for document elements, improved chart configuration options, and upgraded comparison features. Additionally, it introduces auxiliary function enhancements, a revamped list system, and overall API optimizations to streamline user experience. More details are as follows.

Here is a list of changes made in this release

Category ID Description
Adjustment - Added fine-grained format control capabilities for core document elements such as paragraphs, tables, cells, borders, and styles.
Class Name New Features Feature Description
Paragraph GetText Retrieve the text content of a paragraph
Table SetBorders,
ClearBorders
Set table border styles; Clear all border formats of the table
CellFormat ClearFormatting Clear all formatting of a cell
Borders ClearFormatting,
IsShadow
Clear border format settings; Control whether the border displays shadow effect
RowFormat ClearBackground, Height Clear row background color; Set row height
StyleCollection Add (Overload) Add overloaded methods for style creation
PreferredWidth FromPercent,
FromPoints
Support width definition by percentage or point values
CharacterFormat LocaleIdBi Support locale settings for bidirectional text
Frame IsFrame Determine whether the object is a Frame
OfficeMath ToLaTexMathCode,
FromOMMLCode
Convert formula objects to LaTeX math code; Create formula objects from OMML strings
Adjustment - Enhanced configuration and operation capabilities for Chart and its sub-objects.
Class Name New Features Feature Description
Chart and its sub-objects (Including ChartAxis, ChartSeries, ChartDataLabelCollection, ChartLegend, ChartTitle, etc.) Multiple properties and methods Support axis configuration, data label management, legend/title format settings, etc.
Adjustment - Enhanced revision, content control and document comparison features.
Class Name New Features Feature Description
CompareOptions IgnoreTable,
IgnoreHeadersAndFooters
Ignore table content and headers/footers during document comparison
DifferRevisions MoveToRevisions,
MoveFromRevisions
Retrieve revisions of "move to" and "move from" types
StructureDocumentTag* (Including Cell/Inline/Row) RemoveSelfOnly Remove only the content control itself while retaining its contained content
Adjustment - Enhanced auxiliary functions.
Class Name New Features Feature Description
ToPdfParameterList PdfImageCompression,
DigitalSignatureInfo
Configure image compression and digital signature information when saving to PDF
Document MarkdownExportOptions,
ListReferences
Support Markdown export options and list reference management
Adjustment - Reconstructed list system.
Class Name New Features Feature Description
ListFormat ApplyStyle, ApplyListRef Support direct list reference and quick style application
ListLevel Equals,CreatePictureBullet,DeletePictureBullet,PictureBullet Support picture bullet management and list level comparison
ListStyle ListRef, BaseStyle Support list reference and base style configuration
Document ListReferences Retrieve the collection of list references in the document
Adjustment - Removed some redundant or poorly designed properties and methods to improve the overall consistency of the API. For example, obsolete export methods such as OfficeMath.SaveToImage and SaveImageToStream have been removed.
Click the link to download Spire.Doc for Python 13.12.0: