Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A collection of scripts to make working with pdftk a little easier.
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
BlankPaper10pg.pdf
README.md
RuledPaper10pg.pdf
build-pad
burst_pdf.cmd
count-pages
pages-to-signature-break
rotate_pdf_90deg_ccw.cmd
rotate_pdf_90deg_cw.cmd
signature-split

README.md

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
Something went wrong with that request. Please try again.