Last active
January 14, 2022 15:14
-
-
Save tamura/514e5a8072158527233f to your computer and use it in GitHub Desktop.
add file name stamp to pdf file
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
find -type f -print0 |xargs -0 -i sh -c 'echo ""| enscript --header="||{}" --margins=15:15:15:15 -o- | ps2pdf - |pdftk {} stamp - output ./output/{} ' | |
# find -type f -print0 |xargs -0 -i sh -c 'echo "{}"| enscript -B -f Courier-Bold11 -o- | ps2pdf - |pdftk {} stamp - output ./out/{} ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment