This is a small set of bash scripts and Windows batch files used for making pdftk just a little easier to use.
- Download pdftk
- Clone the repo
- Ensure that pdftk is accessible to the scripts via the $PATH or some other smart way of doing that.
Returns the number of pages in the pdf. This is a dependency for many of the other scripts
Returns the number of pages to the next signature break. This is very useful in bookbinding projects
pages-to-signature-break <filename> [options] options: --sheets : number of sheets per signature, defaults to 6
Repeats a pdf to some number of pages. Useful for making pads of blank or ruled paper.
build-pad <pdf filename> <number of pages> [output filename]
Splits a given pdf into signatures for binding
signature-split <filename> [options] options: --sheets : number of sheets per signature, defaults to 6 --filespec : the format for the output filename in printf formatting
Windows Batch Files
These allow for drag-and-drop operations in Windows
- burst_pdf.cmd - splits the file into component pages