Tools to modify PDF files
- Bash
- Ghostscript
sh merge-pdf.sh /path/to/ouotput.pdf /path/to/input-*.pdf
Creates output.pdf from files matching pattern input-*.pdf
sh merge-pdf.sh /path/to/output.pdf /path/to/input-1.pdf /path/to/input-2.pdf /path/to/input-n.pdf
Creates output.pdf from input-1.pdf, input-2.pdf, input-n.pdf
sh split-pdf.sh /path/to/output.pdf /path/to/input.pdf 1-1 6-9 18-21
Creates output.pdf from input.pdf pages: 1, 6, 7, 8, 9, 18, 19, 20, 21
sh watermark-pdf.sh /path/to/input.pdf
Creates input-watermark.pdf from input.pdf in current dir
sh stamp-pdf.sh /path/to/input.pdf
Creates input-stamp.pdf from input.pdf in current dir
- pass watermark string as an argument (now hardcoded)
- pass stamp string as an argument (now hardcoded)