Skip to content

Instantly share code, notes, and snippets.

@tamura
Last active January 14, 2022 15:14
Show Gist options
  • Save tamura/514e5a8072158527233f to your computer and use it in GitHub Desktop.
Save tamura/514e5a8072158527233f to your computer and use it in GitHub Desktop.
add file name stamp to pdf file
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