Document

Overview

Document is a class in Aspose.Note FOSS for Python. Inherits from: CompositeNode.

Document.Save writes the document to a file, stream, or path using the given format or options.

This class provides 4 methods for working with Document objects in Python programs. Available methods include: DetectLayoutChanges, GetPageHistory, Save, __init__. All exported members are accessible to any Python application after installing the Aspose.Note FOSS for Python package. Properties: CreationTime, DisplayName, FileFormat.

Properties

NameTypeAccessDescription
FileFormatFileFormatReadGets the file format.
DisplayNamestr | NoneReadGets the display name.
CreationTimedatetime | NoneReadGets the creation time.

Methods

SignatureDescription
__init__(source: str | Path | BinaryIO | None, load_options: LoadOptions | None)
DetectLayoutChanges()Detects changes in the document layout and updates internal state
GetPageHistory(page: Page)PageHistoryReturns the history information for the specified page
Save(target: str | Path | BinaryIO, format_or_options: SaveFormat | SaveOptions | None)Writes the document to a file, stream, or path using the given format or options

See Also