Skip to content

Instantly share code, notes, and snippets.

@rojenzaman
Created May 25, 2020 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rojenzaman/61d873f73adb7b25ea48d38a645b1b7c to your computer and use it in GitHub Desktop.
Save rojenzaman/61d873f73adb7b25ea48d38a645b1b7c to your computer and use it in GitHub Desktop.
Simple manage PDF title and author name by exif data.
#!/bin/bash
#
# Change the PDF title.
function guide() {
echo -e "usage: `basename $0` \"PDF Title\" \"Author Name\" pdfFileName.pdf";
exit 1;
}
if [ "$#" -lt 3 ]; then
guide;
fi
exiftool -Title="$1" -Author="$2" $3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment