Skip to content

Instantly share code, notes, and snippets.

@rohankhudedev
Created October 16, 2024 14:39
Show Gist options
  • Save rohankhudedev/67c65238c42aadb1ce6e1edd2674be08 to your computer and use it in GitHub Desktop.
Save rohankhudedev/67c65238c42aadb1ce6e1edd2674be08 to your computer and use it in GitHub Desktop.
How to update PDF Metas using exiftool
sudo apt update
sudo apt install libimage-exiftool-perl

#automatically creates backup
exiftool -Title="New Title" -Author="New Author" -Subject="New Subject" birlawhite-warranty-card.pdf

#overwrites original
exiftool -overwrite_original -Title="New Title" -Author="New Author" -Subject="New Subject" file.pdf

#Clears all existing meta
exiftool -all= -Title="New Title" -Author="New Author" -Subject="New Subject" -overwrite_original file.pdf

#Update creation and Modifiation Date to todays
exiftool -all= -Title="New Title" -Author="New Author" -Subject="New Subject" -CreateDate="2024:09:17 00:00:00" -ModifyDate="2024:09:17 00:00:00" -overwrite_original birlawhite-warranty-card.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment