Skip to content

Latest commit

 

History

History
55 lines (31 loc) · 1.38 KB

README.md

File metadata and controls

55 lines (31 loc) · 1.38 KB

pdftk-tk

This is a small set of bash scripts and Windows batch files used for making pdftk just a little easier to use.

Installing

  1. Download pdftk
  2. Clone the repo
  3. Ensure that pdftk is accessible to the scripts via the $PATH or some other smart way of doing that.

Informational Scripts

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

PDF manipulation

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

Windows Batch Files

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