Skip to content

Instantly share code, notes, and snippets.

View magnusnordlander's full-sized avatar

Magnus Nordlander magnusnordlander

View GitHub Profile
@tamura
tamura / gist:514e5a8072158527233f
Last active January 14, 2022 15:14
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/{} '