Author Topic: restore pdf metadata (author)  (Read 130 times)

charlesleroi

  • Newbie
  • *
  • Posts: 3
restore pdf metadata (author)
« on: August 03, 2020, 12:16:09 PM »
Hi everybody!

I changed the author metadata of a pdf with exiftool and deleted the original pdf.
Is it possible to restore the original author data?

Kind regards,
Charles

StarGeek

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 3951
Re: restore pdf metadata (author)
« Reply #1 on: August 03, 2020, 12:37:35 PM »
See the third paragraph on the PDF tags page.

Using -PDF-update:all= will remove any updates that exiftool has made as long as the PDF hasn't been processed by another program.  I'm guessing that you could use -PDF-update:Author= to restore just the Author tag, though I haven't tested it.
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If your GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.

charlesleroi

  • Newbie
  • *
  • Posts: 3
Re: restore pdf metadata (author)
« Reply #2 on: August 03, 2020, 01:21:12 PM »
Thanks, that worked!

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16878
    • ExifTool Home Page
Re: restore pdf metadata (author)
« Reply #3 on: August 03, 2020, 09:32:13 PM »
I'm guessing that you could use -PDF-update:Author= to restore just the Author tag, though I haven't tested it.

No.  You can only revert all changes, not individual tags like this.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

StarGeek

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 3951
Re: restore pdf metadata (author)
« Reply #4 on: August 03, 2020, 10:28:12 PM »
Good to know.
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If your GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.