Skip to content

mrl5/pdf-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF Utils

Tools to modify PDF files

Dependencies

  • Bash
  • Ghostscript

Examples

Merge PDFs

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

Split 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

Watermark PDF

sh watermark-pdf.sh /path/to/input.pdf

Creates input-watermark.pdf from input.pdf in current dir

Stamp PDF

sh stamp-pdf.sh /path/to/input.pdf

Creates input-stamp.pdf from input.pdf in current dir

ToDo

  • pass watermark string as an argument (now hardcoded)
  • pass stamp string as an argument (now hardcoded)