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
| Name | Type | Access | Description |
|---|---|---|---|
FileFormat | FileFormat | Read | Gets the file format. |
DisplayName | str | None | Read | Gets the display name. |
CreationTime | datetime | None | Read | Gets the creation time. |
Methods
| Signature | Description |
|---|---|
__init__(source: str | Path | BinaryIO | None, load_options: LoadOptions | None) | |
DetectLayoutChanges() | Detects changes in the document layout and updates internal state |
GetPageHistory(page: Page) → PageHistory | Returns 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 |