Aspose.Words FOSS for Python API Reference
| Class | Description |
|---|---|
Body | Class with 2 properties. |
BookmarkEnd | Class with 2 properties. |
BookmarkStart | Marks the beginning of a Word bookmark (````). |
Border | Border.line_style is an integer representing the border’s line style. |
Cell | Cell.type returns the cell’s type as a string. |
CellFormat | CellFormat.width specifies the absolute width of the table cell in points. |
ColorMode | Color rendering mode. |
CompressionLevel | 对于OOXML文件的压缩水平. |
ConversionOptions | Options for controlling DOCX to Markdown conversion. |
DocList | DocList.list_id is the identifier of the list within the document. |
Document | Represents a Word document. |
Document | The Document class represents a Word document and provides the get_text() method to extract the full plain‑text content of the file. |
DocumentFormatReader | Protocol defining the interface all document readers must implement. |
FieldEnd | Class with 3 properties. |
FieldSeparator | Class with 2 properties. |
FieldStart | FieldStart.type is a string indicating the field’s type name. |
Font | Font.name stores the font family name as a string. |
FrameFormat | Floating text-frame definition. |
HeaderFooter | HeaderFooter.type is a string representing the header/footer content type. |
ImageData | ImageData.source_filename holds the original filename of the image. |
LdmMarkdownWriter | Converts a light_document_model.Document to a Markdown string. |
ListFormat | ListFormat.is_list_item indicates whether the paragraph is a list item. |
ListLabel | Snapshot of a list-item’s rendered bullet/number label. |
ListLevel | ListLevel.number_format specifies the numeric format string for the list level. |
ListLevelOverride | One inside a concrete . |
LoadFormat | 文件加载格式常数. |
MarkdownEmptyParagraphExportMode | 控制空段的导出方式. |
MarkdownExportAsHtml | 控制哪些元素被输出为原始HTML. |
MarkdownFileReader | 读取Markdown (.md) 文件,每行产生一个段落. |
MarkdownLinkExportMode | 链接导出模式选项. |
MarkdownListExportMode | 列出输出模式选项. |
MarkdownSaveOptions | 保存文件作为Markdown的选项. |
OoxmlCompliance | 符合OOXML标准的水平. |
OoxmlSaveOptions | Options for saving a document as DOCX (Office Open XML). |
OutlineOptions | 控制PDF中如何生成轮 (书签面板). |
PageSetup | PageSetup.paper_size represents the predefined size of the page (e.g., A4, Letter). |
Paragraph | A paragraph whose children — Run , BookmarkStart / End , FieldStart / Separator / End and inline ShapeNode — sit in a single ordered collection in document order. |
ParagraphFormat | ParagraphFormat.alignment specifies the horizontal alignment of the paragraph. |
ParagraphInfo | 关于段落的风格和背景信息. |
PdfCompliance | 符合PDF标准的水平. |
PdfFontEmbeddingMode | 在PDF中嵌入字体模式. |
PdfImageCompression | Image compression in PDF. |
PdfPageMode | 文件页面显示模式. |
PdfSaveOptions | 保存文件为PDF的选项. |
PdfTextCompression | Text compression in PDF. |
PdfZoomBehavior | Mirrors public API. |
Row | Row.type是一个字符串,它识别出行的类型. |
RowFormat | RowFormat.height specifies the row’s height in points. |
RtfFileReader | Reads RTF files (OLE2-format) and produces the same data structures as DocumentReader (for .docx) and DocFileReader (for .doc). |
Run | 运行.文本包含了运行的文字内容. |
RunFormatting | 运行文本格式化属性. |
SaveFormat | 文件保存格式常数. |
Section | 区块.类型是一个字符串,表示该区段的分类或标识符. |
Shading | 影色.背景_颜色将为字符串的后台颜值保存. |
ShapeNode | ShapeNode.type is a string indicating the node’s type identifier. |
Style | Style.name is the identifier string of the style. |
TabStop | Class with 4 properties. |
TabStopCollection | TabStopCollection.add(position, alignment, leader) inserts a new tab stop with the specified alignment and leader character. |
Table | Table.rows provides the collection of TableRow objects representing each row in the table. |
Table | Represents a table structure. |
TableCell | Represents a table cell. |
TableContentAlignment | 表内容对齐选项. |
TableRow | Represents a table row. |
TableStyleFormat | Table-level properties stored on table styles ( w:tblPr inside w:style ). |
TextColumn | Class with 2 properties. |
TextColumns | TextColumns exposes properties count, evenly_spaced, spacing, line_between, and columns to configure multi‑column layout in a document. |
TextFileReader | 读取纯文本 (.txt) 文件,每行输出一个段落. |
UnknownNode | Class with 1 property. |
Zip64Mode | 控制何时使用OOXML文件的ZIP64格式扩展. |
| Enumeration | Description |
|---|---|
CodeBlockStyle | Code block style preference. |
HeadingStyle | 排行榜出口方式优先. |
ListMarker | 弹名单标记方式. |
| Class | Description |
|---|---|
ListHandler | 处理列表的解析和转换. |
ParagraphConverter | Handles conversion of paragraphs to Markdown. |
TableConverter | Handles conversion of tables to Markdown. |
| Class | Description |
|---|---|
BlipInfo | Parsed BSE (Blip Store Entry) with location of image data. |
CharProps | 通过CHPX获取的属性,用于文本运行. |
ChildAnchorInfo | 孩子形状在其父组坐标系中的位置. |
DocFileReader | Full DOC reader with LDM (Light Document Model) building capability. |
DocFileReaderCore | Core reader for Word 97-2003 (.doc) files. |
DocTableBuilderMixin | 添加桌子构建助手到DOC读取器的混合物. |
FibData | Parsed FIB (File Information Block) data. |
GroupShapeInfo | Coordinate system of a shape group (from Spgr record). |
ListDef | 解析清单定义,并提供完整的水平信息. |
ListLevelData | One parsed LVL record (measurements in points). |
ParaProps | Properties extracted from PAPX for a single paragraph. |
ShapeAnchor | Parsed SPA (Shape Address) from PlcSpaMom / PlcSpaHdr. |
ShapeLineProps | Escher line/fill properties for a shape (from FOpt records). |
StyleData | 属性从风格定义 (STSH UPX) 中解析. |
TableRowProps | Properties extracted from PAPX SPRMs on table row-end paragraphs. |
| Class | Description |
|---|---|
CellBuilder | Build :class: ldm.Cell from a ```` element. |
CellData | Table cell. |
DocumentReader | Reads DOCX documents and produces abstracted data structures. |
FontBuilder | Build a non-cascaded :class: ldm.Font from one ````. |
FontResolver | Compose a fully cascaded :class: ldm.Font . |
LdmBuilderMixin | Mixin that adds :meth: to_light_document to :class: DocumentReader . |
ListBuilder | Translate ```` into a list of :class: ldm.DocList . |
NumberingInfo | Numbering definition. |
NumberingLevel | List level definition. |
PageSetupBuilder | Build :class: ldm.PageSetup from a ```` element. |
ParagraphBuilder | Build :class: ldm.Paragraph from a ```` element. |
ParagraphData | 文章的内容和风格. |
ParagraphFormatBuilder | Build a non-cascaded :class: ldm.ParagraphFormat from one ````. |
ParagraphFormatResolver | Compose a fully cascaded :class: ldm.ParagraphFormat . |
ReaderContext | Class extending Protocol. |
RowBuilder | Build :class: ldm.Row from a ```` element. |
RowData | Table row. |
RunBuilder | Build a single :class: ldm.Run with a resolved font cascade. |
RunData | 运行文本与格式化. |
SectionBuilder | Split the body into :class: ldm.Section \ s at sectPr boundaries. |
ShapeParserMixin | Mixin providing drawing/shape parsing methods for DocumentReader. |
StyleBuilder | Translate ```` into a list of :class: ldm.Style . |
StyleChainResolver | Walk the ```` graph for a styleId. |
TableBuilder | Build :class: ldm.Table from a ```` element. |
TableData | Table structure. |
| Class | Description |
|---|---|
BookmarkState | Hands out monotonically increasing bookmark ids and pairs starts/ends across paragraphs. |
DocxWriterLossyWarning | 警告呼叫者,作者正在放弃已知的LDM构造. |
ImageEntry | One image to add to word/media/ plus its relationship row. |
ImageRenderState | 积器线程通过段落呈现为内线形状. |
LdmDocxWriter | Convert an :class: ldm.Document into a DOCX file. |
| Class | Description |
|---|---|
CellMerge | 指定表中的一个单元格如何与其他单 cells合并. |
CellVerticalAlignment | 指定表单内文本的垂直证明. |
HeightRule | 指定对象高度的规则. |
LineSpacingRule | 指定线距的值. |
LineStyle | Specifies line style of a border. |
NumberStyle | Specifies the number style for a list, footnotes, endnotes, page numbers. |
Orientation | Specifies page orientation. |
ParagraphAlignment | Specifies text alignment in a paragraph. |
SectionStart | 指定部分开始的断裂类型. |
StyleIdentifier | Locale-independent built-in style identifier. |
StyleType | 指定风格类型. |
TabAlignment | Tab stop alignment. |
TabLeader | 关键站领导角色. |
Underline | 指定对字体应用的底线类型. |
WrapType | 指定文字如何包围形状或图像. |
| Class | Description |
|---|---|
ListInfo | Information about a list. |
ListLevelInfo | 关于列表级别的信息. |
NumberingParser | 解析器用于DOCX编号定义. |
ParsedStyle | Parsed style information. |
StyleParser | 解析器用于DOCX风格名称和属性. |
| Class | Description |
|---|---|
LdmPdfWriter | Converts a light_document_model.Document to a PDF file. |
PDFWriterContext | Class with 1 property. |
ParagraphRenderer | 将LDM段落转换为PDF. |
RunRenderer | 呈现格式化运行 (带字体,颜色和链接的文本段). |
ShapeRenderer | Renders shapes, images, and positioned elements. |
TableRenderer | 将LDM表转换为PDF. |