GroupDocs.Parser extracts metadata such as author, title, creation date, and custom properties from supported formats (see supported formats).
Extract metadata
fromgroupdocs.parserimportParserwithParser("./sample.pdf")asparser:metadata_items=parser.get_metadata()ifmetadata_itemsisNone:print("Metadata extraction is not supported for this format.")else:foriteminmetadata_items:print(f"{item.name}: {item.value}")
The following sample file is used in this example: sample.pdf