RtfFileReader

Overview

RtfFileReader là một lớp trong Aspose.Words FOSS cho Python.

Đọc tệp RTF (format OLE2) và tạo ra các cấu trúc dữ liệu tương tự

as DocumentReader (for .docx) and DocFileReader (for .doc).

Khóa học này cung cấp 5 phương pháp để làm việc với các đối tượng RtfFileReader trong các chương trình Python. Các phương pháp có sẵn bao gồm: __init__, load_bytes, load_file, load_stream, to_light_document. Tất cả các thành viên công cộng đều có thể truy cập bất kỳ ứng dụng Python nào sau khi cài đặt Aspose.Words FOSS cho gói Python.

Methods

SignatureDescription
__init__()
load_file(filepath: Union[str, Path])Tải .rtf từ đường file.
load_stream(stream: BinaryIO)Tải .rtf từ dòng.
load_bytes(data: bytes)Tải .rtf từ byte.
to_light_document()ldm.DocumentXây dựng một light_document_model.Document từ tệp RTF tải xuống.

See Also

 Tiếng Việt