SaveOptions class
SaveOptions class
Allows to specify additional options (such as password) when saving an annotated document.
The SaveOptions type exposes the following members:
Constructors
| Constructor | Description |
|---|---|
| init |
Properties
| Property | Description |
|---|---|
| annotation_types | The annotations that will be in the resultant document. |
| first_page | The first page number when saving a page range. |
| last_page | The last page number when saving a page range. |
| only_annotated_pages | The property indicates whether to save only annotated pages. |
| version | The version key that will be used to access the current version. |
Example
from groupdocs.annotation import Annotator
from groupdocs.annotation.options import SaveOptions, AnnotationType
with Annotator("document.pdf") as annotator:
options = SaveOptions()
options.annotation_types = AnnotationType.AREA
options.first_page = 1
options.last_page = 2
annotator.save("filtered.pdf", save_options=options)
Guides
Task guides that use SaveOptions:
See Also
- module
groupdocs.annotation.options