import_annotations_from_xml_file method
import_annotations_from_xml_file
Export annotations from XML file.
Learn more
- More about how to export annotations: https://docs.groupdocs.com/display/annotationnet/Export+annotations+from+document
def import_annotations_from_xml_file(self, file_path):
...
| Parameter | Type | Description |
|---|---|---|
| file_path | str |
The path to XML file. |
Example
from groupdocs.annotation import Annotator
def import_annotations_from_xml():
with Annotator("./sample.pdf") as annotator:
annotator.import_annotations_from_xml_file(file_path="./annotations.xml")
annotator.save("./output.pdf")
print("Imported annotations from ./annotations.xml. Output saved to ./output.pdf.")
if __name__ == "__main__":
import_annotations_from_xml()
See Also
- class
Annotator