Paper Office
paper-docxAPI reference

API reference

paper-docx 0.2.0 API reference

API reference for paper-docx 0.2.0, including inherited APIs and Paper additions. Import this package as docx.

Document

funcDocument(docx: str | IO[bytes] | None = None) -> DocumentObject

Return a Document object loaded from docx, where docx can be either a path to a .docx file (a string) or a file-like object.

If docx is missing or None, the built-in default document "template" is loaded.

paramdocxstr | IO[bytes] | None
= None

Returns

docx.document.Document

On this page