commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Some PDF viewers don't manage form fields correctly when printing. Instead of treating them as transparent, they print as black shapes.
Merge Multiple PDFs In Alphabetical Order
Put this code in a bash script. The script expects the PDF file as its only parameter.
It will add a header to the PDF containing the page numbers and output it to a file with the suffix "-header.pdf"
Requires enscript, ps2pdf and pdftk.
To quickly add some remark, comment, stamp text, ... on top of (each of) the pages of the input pdf file.
Joins two pdf documents coming from a simplex document feed scanner. Needs pdftk >1.44 w/ shuffle.
Simple alternative to the previous submitted one