fromgroupdocs.annotationimportAnnotatordefimport_annotations_from_xml():withAnnotator("./sample.pdf")asannotator: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()