Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save documentprocessing/55cccbeeb42624e06bd0e5f286725b33 to your computer and use it in GitHub Desktop.
Save documentprocessing/55cccbeeb42624e06bd0e5f286725b33 to your computer and use it in GitHub Desktop.
Read Metadata information of a File with Python pyExifTool
import exiftool
files = ["2407.10671v3.pdf"]
with exiftool.ExifToolHelper() as et:
metadata = et.get_metadata(files)
for d in metadata:
for k, v in d.items():
print(f"Dict: {k} = {v}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment