Created
May 25, 2020 19:04
-
-
Save rojenzaman/61d873f73adb7b25ea48d38a645b1b7c to your computer and use it in GitHub Desktop.
Simple manage PDF title and author name by exif data.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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