DocumentFormatReader

DocumentFormatReader

Overview

DocumentFormatReader is a class in Aspose.Words for Python. Inherits from: Protocol.

Protocol defining the interface all document readers must implement.

Methods

SignatureDescription
load_file(filepath: Union[str, Path])Loads a document from a file path (str or Path) into the reader
load_stream(stream: BinaryIO)Loads a document from a binary stream
load_bytes(data: bytes)Loads a document from raw bytes into the reader
to_light_document()ldm.DocumentConverts the loaded content to a light document