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 in the Words API.
BookmarkEndClass in the Words API.
BookmarkStartMarks the beginning of a Word bookmark (<w:bookmarkStart>).
BorderClass in the Words API.
CellClass in the Words API.
CellFormatClass in the Words API.
ColorModeColor rendering mode.
CompressionLevelCompression level for OOXML files.
ConversionOptionsOptions for controlling DOCX to Markdown conversion.
DocListClass in the Words API.
DocumentRepresents a Word document.
DocumentClass in the Words API.
DocumentFormatReaderProtocol defining the interface all document readers must implement.
FieldEndClass in the Words API.
FieldSeparatorClass in the Words API.
FieldStartClass in the Words API.
FontClass in the Words API.
FrameFormatFloating text-frame definition.
HeaderFooterClass in the Words API.
ImageDataClass in the Words API.
LdmMarkdownWriterConverts a light_document_model.Document to a Markdown string.
ListFormatClass in the Words API.
ListLabelSnapshot of a list-item’s rendered bullet/number label.
ListLevelClass in the Words API.
ListLevelOverrideOne <w:lvlOverride> inside a concrete <w:num>.
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.
PageSetupClass in the Words API.
ParagraphA paragraph whose children — Run, BookmarkStart / End,
.
ParagraphFormatClass in the Words API.
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.
RowClass in the Words API.
RowFormatClass in the Words API.
RtfFileReaderReads RTF files (OLE2-format) and produces the same data structures
.
RunClass in the Words API.
RunFormattingText run formatting properties.
SaveFormatDocument save format constants.
SectionClass in the Words API.
ShadingClass in the Words API.
ShapeNodeClass in the Words API.
StyleClass in the Words API.
TabStopClass in the Words API.
TabStopCollectionClass in the Words API.
TableClass in the Words API.
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 in the Words API.
TextColumnsClass in the Words API.
TextFileReaderReads plain-text (.txt) files and yields one Paragraph per line.
UnknownNodeClass in the Words API.
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 <w:tc> element.
CellDataTable cell.
DocumentReaderReads DOCX documents and produces abstracted data structures.
FontBuilderBuild a non-cascaded :class:ldm.Font from one <w:rPr>.
FontResolverCompose a fully cascaded :class:ldm.Font.
LdmBuilderMixinMixin that adds :meth:to_light_document to :class:DocumentReader.
ListBuilderTranslate <w:numbering> into a list of :class:ldm.DocList.
NumberingInfoNumbering definition.
NumberingLevelList level definition.
PageSetupBuilderBuild :class:ldm.PageSetup from a <w:sectPr> element.
ParagraphBuilderBuild :class:ldm.Paragraph from a <w:p> element.
ParagraphDataParagraph with style and content.
ParagraphFormatBuilderBuild a non-cascaded :class:ldm.ParagraphFormat from one <w:pPr>.
ParagraphFormatResolverCompose a fully cascaded :class:ldm.ParagraphFormat.
ReaderContextClass in the Words API.
RowBuilderBuild :class:ldm.Row from a <w:tr> 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 <w:styles> into a list of :class:ldm.Style.
StyleChainResolverWalk the <w:basedOn> graph for a styleId.
TableBuilderBuild :class:ldm.Table from a <w:tbl> element.
TableDataTable structure.

Docx Writer

ClassDescription
BookmarkStateHands out monotonically increasing bookmark ids and pairs
.
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,
.
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 in the Words API.
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