export_annotations_to_xml_file method
export_annotations_to_xml_file
Exports annotations from the document to an XML file.
Learn more:
- More about how to import annotations: https://docs.groupdocs.com/display/annotationnet/Import+annotations+from+document
def export_annotations_to_xml_file(self, output_path):
...
| Parameter | Type | Description |
|---|---|---|
| output_path | str |
The output file path (must be in .xml format). |
Example
from groupdocs.annotation import Annotator
def export_annotations_to_xml():
with Annotator("./annotated.pdf") as annotator:
annotator.export_annotations_to_xml_file(output_path="./exported_annotations.xml")
print("Exported annotations to ./exported_annotations.xml.")
See Also
- class
Annotator