Features

Features

Aspose.Words FOSS for Python is a document conversion and text extraction library for Word documents. The entire public API is built around the Document class.


Supported Input Formats

The Document class loads files from these formats automatically based on file extension:

FormatExtensions
Word Document.docx, .doc
Rich Text.rtf
Plain Text.txt
Markdown.md

Output Formats and Save Options

Use LdmPdfWriter or LdmMarkdownWriter with no options for quick conversion, or pass a save-options object to the writer’s constructor for additional configuration.

OutputWriter ClassSave Options Class
PDFLdmPdfWriterPdfSaveOptions
MarkdownLdmMarkdownWriterMarkdownSaveOptions — control underline formatting export
Plain TextDocument.text property—

Note: PdfSaveOptions properties (compliance, JPEG quality, font embedding, etc.) are defined for API forward-compatibility but are not yet consumed by the PDF writer. Setting them currently has no effect on output. For MarkdownSaveOptions, only export_underline_formatting is currently applied.

For code examples and save-options configuration details, see Core Management.


Text Extraction

The Document.text property returns the full plain-text content of any loaded document without writing to disk.


Image Support

Documents with embedded images can be converted to all supported output formats. The conversion pipeline preserves image content through the export process.


API Summary

Class / MethodRole
DocumentLoad documents, convert formats, extract text
SaveFormatOutput format constants (PDF, MARKDOWN, TEXT)
PdfSaveOptionsPDF export configuration
MarkdownSaveOptionsMarkdown export configuration

See Also

 English