Aspose.Words FOSS for Python API Reference

API reference for Aspose.Words FOSS for Python v26.5.0. 146 public types organized by module.

Core API

ClassDescription
BodyClass with 2 properties.
BookmarkEndClass with 2 properties.
BookmarkStartMarks the beginning of a Word bookmark (````).
BorderBorder.line_style is an integer representing the border’s line style.
CellCell.type returns the cell’s type as a string.
CellFormatCellFormat.width specifies the absolute width of the table cell in points.
ColorModeColor rendering mode.
CompressionLevelCompression level for OOXML files.
ConversionOptionsOptions for controlling DOCX to Markdown conversion.
DocListDocList.list_id is the identifier of the list within the document.
DocumentRepresents a Word document.
DocumentThe Document class represents a Word document and provides the get_text() method to extract the full plain‑text content of the file.
DocumentFormatReaderProtocol defining the interface all document readers must implement.
FieldEndClass with 3 properties.
FieldSeparatorClass with 2 properties.
FieldStartFieldStart.type is a string indicating the field’s type name.
FontFont.name stores the font family name as a string.
FrameFormatFloating text-frame definition.
HeaderFooterHeaderFooter.type is a string representing the header/footer content type.
ImageDataImageData.source_filename holds the original filename of the image.
LdmMarkdownWriterConverts a light_document_model.Document to a Markdown string.
ListFormatListFormat.is_list_item indicates whether the paragraph is a list item.
ListLabelSnapshot of a list-item’s rendered bullet/number label.
ListLevelListLevel.number_format specifies the numeric format string for the list level.
ListLevelOverrideOne inside a concrete.
LoadFormatDocument load format constants.
MarkdownEmptyParagraphExportModeControls how empty paragraphs are exported.
MarkdownExportAsHtmlControls which elements are exported as raw HTML.
MarkdownFileReaderReads Markdown (.md) files and yields one Paragraph per line.
MarkdownLinkExportModeLink export mode options.
MarkdownListExportModeList export mode options.
MarkdownSaveOptionsOptions for saving documents as Markdown.
OoxmlComplianceOOXML standards compliance level.
OoxmlSaveOptionsOptions for saving a document as DOCX (Office Open XML).
OutlineOptionsControls how outlines (bookmarks panel) are generated in the PDF.
PageSetupPageSetup.paper_size represents the predefined size of the page (e.g., A4, Letter).
ParagraphA paragraph whose children — Run, BookmarkStart / End, FieldStart / Separator / End and inline ShapeNode — sit in a single ordered collection in document order.
ParagraphFormatParagraphFormat.alignment specifies the horizontal alignment of the paragraph.
ParagraphInfoInformation about a paragraph’s style and context.
PdfCompliancePDF standards compliance level.
PdfFontEmbeddingModeFont embedding mode in PDF.
PdfImageCompressionImage compression in PDF.
PdfPageModePDF page display mode.
PdfSaveOptionsOptions for saving documents as PDF.
PdfTextCompressionText compression in PDF.
PdfZoomBehaviorMirrors public API.
RowRow.type is a string that identifies the row’s type.
RowFormatRowFormat.height specifies the row’s height in points.
RtfFileReaderReads RTF files (OLE2-format) and produces the same data structures as DocumentReader (for .docx) and DocFileReader (for .doc).
RunRun.text holds the literal text content of the run.
RunFormattingText run formatting properties.
SaveFormatDocument save format constants.
SectionSection.type is a string indicating the section’s classification or identifier.
ShadingShading.background_color holds the background color value for the shading as a string.
ShapeNodeShapeNode.type is a string indicating the node’s type identifier.
StyleStyle.name is the identifier string of the style.
TabStopClass with 4 properties.
TabStopCollectionTabStopCollection.add(position, alignment, leader) inserts a new tab stop with the specified alignment and leader character.
TableTable.rows provides the collection of TableRow objects representing each row in the table.
TableRepresents a table structure.
TableCellRepresents a table cell.
TableContentAlignmentTable content alignment options.
TableRowRepresents a table row.
TableStyleFormatTable-level properties stored on table styles (w:tblPr inside w:style).
TextColumnClass with 2 properties.
TextColumnsTextColumns exposes properties count, evenly_spaced, spacing, line_between, and columns to configure multi‑column layout in a document.
TextFileReaderReads plain-text (.txt) files and yields one Paragraph per line.
UnknownNodeClass with 1 property.
Zip64ModeControls when to use ZIP64 format extensions for OOXML files.

Enumerations

EnumerationDescription
CodeBlockStyleCode block style preference.
HeadingStyleHeading export style preference.
ListMarkerBullet list marker style.

Converters

ClassDescription
ListHandlerHandles parsing and conversion of lists.
ParagraphConverterHandles conversion of paragraphs to Markdown.
TableConverterHandles conversion of tables to Markdown.

Doc Reader

ClassDescription
BlipInfoParsed BSE (Blip Store Entry) with location of image data.
CharPropsProperties extracted from CHPX for a text run.
ChildAnchorInfoPosition of a child shape within its parent group’s coordinate system.
DocFileReaderFull DOC reader with LDM (Light Document Model) building capability.
DocFileReaderCoreCore reader for Word 97-2003 (.doc) files.
DocTableBuilderMixinMixin that adds table-building helpers to the DOC reader.
FibDataParsed FIB (File Information Block) data.
GroupShapeInfoCoordinate system of a shape group (from Spgr record).
ListDefParsed list definition with full level information.
ListLevelDataOne parsed LVL record (measurements in points).
ParaPropsProperties extracted from PAPX for a single paragraph.
ShapeAnchorParsed SPA (Shape Address) from PlcSpaMom / PlcSpaHdr.
ShapeLinePropsEscher line/fill properties for a shape (from FOpt records).
StyleDataProperties parsed from a style definition (STSH UPX).
TableRowPropsProperties extracted from PAPX SPRMs on table row-end paragraphs.

Docx Reader

ClassDescription
CellBuilderBuild :class:ldm.Cell from a ```` element.
CellDataTable cell.
DocumentReaderReads DOCX documents and produces abstracted data structures.
FontBuilderBuild a non-cascaded :class:ldm.Font from one ````.
FontResolverCompose a fully cascaded :class:ldm.Font.
LdmBuilderMixinMixin that adds :meth:to_light_document to :class:DocumentReader.
ListBuilderTranslate ```` into a list of :class:ldm.DocList.
NumberingInfoNumbering definition.
NumberingLevelList level definition.
PageSetupBuilderBuild :class:ldm.PageSetup from a ```` element.
ParagraphBuilderBuild :class:ldm.Paragraph from a ```` element.
ParagraphDataParagraph with style and content.
ParagraphFormatBuilderBuild a non-cascaded :class:ldm.ParagraphFormat from one ````.
ParagraphFormatResolverCompose a fully cascaded :class:ldm.ParagraphFormat.
ReaderContextClass extending Protocol.
RowBuilderBuild :class:ldm.Row from a ```` element.
RowDataTable row.
RunBuilderBuild a single :class:ldm.Run with a resolved font cascade.
RunDataText run with formatting.
SectionBuilderSplit the body into :class:ldm.Section\ s at sectPr boundaries.
ShapeParserMixinMixin providing drawing/shape parsing methods for DocumentReader.
StyleBuilderTranslate ```` into a list of :class:ldm.Style.
StyleChainResolverWalk the ```` graph for a styleId.
TableBuilderBuild :class:ldm.Table from a ```` element.
TableDataTable structure.

Docx Writer

ClassDescription
BookmarkStateHands out monotonically increasing bookmark ids and pairs starts/ends across paragraphs.
DocxWriterLossyWarningWarns the caller that the writer is dropping known LDM constructs.
ImageEntryOne image to add to word/media/ plus its relationship row.
ImageRenderStateAccumulator threaded through paragraph rendering for inline shapes.
LdmDocxWriterConvert an :class:ldm.Document into a DOCX file.

Model

ClassDescription
CellMergeSpecifies how a cell in a table is merged with other cells.
CellVerticalAlignmentSpecifies vertical justification of text inside a table cell.
HeightRuleSpecifies the rule for determining the height of an object.
LineSpacingRuleSpecifies values for line spacing.
LineStyleSpecifies line style of a border.
NumberStyleSpecifies the number style for a list, footnotes, endnotes, page numbers.
OrientationSpecifies page orientation.
ParagraphAlignmentSpecifies text alignment in a paragraph.
SectionStartSpecifies the type of break at the beginning of the section.
StyleIdentifierLocale-independent built-in style identifier.
StyleTypeSpecifies type of the style.
TabAlignmentTab stop alignment.
TabLeaderTab stop leader character.
UnderlineSpecifies type of the underline applied to a font.
WrapTypeSpecifies how text is wrapped around a shape or picture.

Parsers

ClassDescription
ListInfoInformation about a list.
ListLevelInfoInformation about a list level.
NumberingParserParser for DOCX numbering definitions.
ParsedStyleParsed style information.
StyleParserParser for DOCX style names and properties.

Pdf Writer

ClassDescription
LdmPdfWriterConverts a light_document_model.Document to a PDF file.
PDFWriterContextClass with 1 property.
ParagraphRendererRenders LDM paragraphs into PDF.
RunRendererRenders formatted runs (text segments with fonts, colors, links).
ShapeRendererRenders shapes, images, and positioned elements.
TableRendererRenders LDM tables into PDF.

See Also

 English