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.
count-pages
Returns the number of pages in the pdf. This is a dependency for many of the other scripts
count-pages <pdfname>
pages-to-signature-break
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
build-pad
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]
signature-split
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
These allow for drag-and-drop operations in Windows
- burst_pdf.cmd - splits the file into component pages
- rotate_pdf_90deg_ccw.cmd
- rotate_pdf_90deg_cw.cmd