SaveOptions class
Leave feedback
On this page
Allows to specify additional options (such as password) when saving an annotated document.
The SaveOptions type exposes the following members:
| Constructor | Description |
|---|---|
| init |
| 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. |
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)
Task guides that use SaveOptions:
- module
groupdocs.annotation.options
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.