Last active
May 2, 2024 06:39
-
-
Save knbknb/2c8d5fbe2c013425a173951222270d1f to your computer and use it in GitHub Desktop.
exiftool-hacks (used to set metadata in a PDF file here)
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
#!/usr/bin/env bash | |
OUTFILE=myfile.pdf | |
# write metadata to the PDF file, update in place | |
exiftool -overwrite_original -Title="" \ | |
-Author="" \ | |
-Subject="Newsletter, v$(date '+%Y-%m-%d')" \ | |
-Producer="" \ | |
-Creator="" \ | |
-Keywords="" \ | |
-CreatorTool="pandoc" \ | |
-Copyright="2024" "$OUTFILE" || true | |
# the "|| true" construct is for use in pipelines, to avoid stopping the pipeline |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment