Collection of useful shell scripts for quickly modifying pdf files from command-line.
- Add page numbers on each page of either a A4 pdf document or on typical pdf presentation slides
- Easily write any text anywhere on a A4 pdf
- Sign A4 pdfs with your signature with one easy command (requires the file
~/templates/signature.png
to exist)
- PDFtk (command-line)
- PDFjam
- ps2pdf (Ghostscript)
- convert (ImageMagick 6.7.7-10 2016-06-01 Q16)
- Evince document viewer (optional for viewing)
- Clone or download this repository.
- Start the terminal and navigate to the scripts.
- You may have to set the scripts to executable.
$ chmod +x addpagenum.sh addpagenumSlides.sh signpdf.sh writeonpdf.sh
Execute any command without parameters to retrieve the usage information. The scripts are short and intuitive and will offer more information on parameters settings.
$ ./writeonpdf.sh
Usage: writeonpdf.sh text document coord-x coord-y [scale] [quiet]
Coordinates of center
$ ./signpdf.sh
Usage: signpdf.sh document coord-x coord-y [scale]
Coordinates from center
$ ./addpagenum.sh
Usage: addpagenum.sh document [offset]
$ ./addpagenumSlides.sh
Usage: addpagenumSlides.sh document [offset]