RtfFileReader
Overview
RtfFileReader is a class in Aspose.Words for Python.
Reads RTF files (OLE2-format) and produces the same data structures
as DocumentReader (for .docx) and DocFileReader (for .doc).
Methods
| Signature | Description |
|---|---|
__init__() | |
load_file(filepath: Union[str, Path]) | Load .rtf from file path. |
load_stream(stream: BinaryIO) | Load .rtf from stream. |
load_bytes(data: bytes) | Load .rtf from bytes. |
to_light_document() → ldm.Document | Build a light_document_model.Document from the loaded RTF file. |