Aspose.Words FOSS for Python API Reference

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.
CompressionLevel对于OOXML文件的压缩水平.
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 .
LoadFormat文件加载格式常数.
MarkdownEmptyParagraphExportMode控制空段的导出方式.
MarkdownExportAsHtml控制哪些元素被输出为原始HTML.
MarkdownFileReader读取Markdown (.md) 文件,每行产生一个段落.
MarkdownLinkExportMode链接导出模式选项.
MarkdownListExportMode列出输出模式选项.
MarkdownSaveOptions保存文件作为Markdown的选项.
OoxmlCompliance符合OOXML标准的水平.
OoxmlSaveOptionsOptions for saving a document as DOCX (Office Open XML).
OutlineOptions控制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.
ParagraphInfo关于段落的风格和背景信息.
PdfCompliance符合PDF标准的水平.
PdfFontEmbeddingMode在PDF中嵌入字体模式.
PdfImageCompressionImage compression in PDF.
PdfPageMode文件页面显示模式.
PdfSaveOptions保存文件为PDF的选项.
PdfTextCompressionText compression in PDF.
PdfZoomBehaviorMirrors public API.
RowRow.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).
Run运行.文本包含了运行的文字内容.
RunFormatting运行文本格式化属性.
SaveFormat文件保存格式常数.
Section区块.类型是一个字符串,表示该区段的分类或标识符.
Shading影色.背景_颜色将为字符串的后台颜值保存.
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.
TableContentAlignment表内容对齐选项.
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.
TextFileReader读取纯文本 (.txt) 文件,每行输出一个段落.
UnknownNodeClass with 1 property.
Zip64Mode控制何时使用OOXML文件的ZIP64格式扩展.
EnumerationDescription
CodeBlockStyleCode block style preference.
HeadingStyle排行榜出口方式优先.
ListMarker弹名单标记方式.
ClassDescription
ListHandler处理列表的解析和转换.
ParagraphConverterHandles conversion of paragraphs to Markdown.
TableConverterHandles conversion of tables to Markdown.
ClassDescription
BlipInfoParsed BSE (Blip Store Entry) with location of image data.
CharProps通过CHPX获取的属性,用于文本运行.
ChildAnchorInfo孩子形状在其父组坐标系中的位置.
DocFileReaderFull DOC reader with LDM (Light Document Model) building capability.
DocFileReaderCoreCore reader for Word 97-2003 (.doc) files.
DocTableBuilderMixin添加桌子构建助手到DOC读取器的混合物.
FibDataParsed FIB (File Information Block) data.
GroupShapeInfoCoordinate system of a shape group (from Spgr record).
ListDef解析清单定义,并提供完整的水平信息.
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).
StyleData属性从风格定义 (STSH UPX) 中解析.
TableRowPropsProperties extracted from PAPX SPRMs on table row-end paragraphs.
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.
ParagraphData文章的内容和风格.
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.
RunData运行文本与格式化.
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.
ClassDescription
BookmarkStateHands out monotonically increasing bookmark ids and pairs starts/ends across paragraphs.
DocxWriterLossyWarning警告呼叫者,作者正在放弃已知的LDM构造.
ImageEntryOne image to add to word/media/ plus its relationship row.
ImageRenderState积器线程通过段落呈现为内线形状.
LdmDocxWriterConvert an :class: ldm.Document into a DOCX file.
ClassDescription
CellMerge指定表中的一个单元格如何与其他单 cells合并.
CellVerticalAlignment指定表单内文本的垂直证明.
HeightRule指定对象高度的规则.
LineSpacingRule指定线距的值.
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.
SectionStart指定部分开始的断裂类型.
StyleIdentifierLocale-independent built-in style identifier.
StyleType指定风格类型.
TabAlignmentTab stop alignment.
TabLeader关键站领导角色.
Underline指定对字体应用的底线类型.
WrapType指定文字如何包围形状或图像.
ClassDescription
ListInfoInformation about a list.
ListLevelInfo关于列表级别的信息.
NumberingParser解析器用于DOCX编号定义.
ParsedStyleParsed style information.
StyleParser解析器用于DOCX风格名称和属性.
ClassDescription
LdmPdfWriterConverts a light_document_model.Document to a PDF file.
PDFWriterContextClass with 1 property.
ParagraphRenderer将LDM段落转换为PDF.
RunRenderer呈现格式化运行 (带字体,颜色和链接的文本段).
ShapeRendererRenders shapes, images, and positioned elements.
TableRenderer将LDM表转换为PDF.
 中文