1. Sergey Astanin
  2. pdfscripts


Clone wiki

pdfscripts / Home

PDF Scripts

Some scripts to deal with PDF files:


A simple GUI tool to edit PDF metadata (Subject, Author, Keywords etc.).

screenshot (first version)

Requirements: pdftk (command line utility), PyGTK, iterpipes.

Source: edit-pdf-desc.py

Usage: edit-pdf-desc.py filename.pdf


Shell script to rasterize a range of PDF pages, trim their margins (crop pages), and compress the result as DjVu.

Requirements: pdftoppm, DjVuLibre (c44, djvm, cjb2), ImageMagick.

Source: pdf-trim-to-djvu

Usage: pdf-trim-to-djvu [options] document.pdf

 -f <int>   the fist page to process [default: 1]
 -t <int>   the last page to process
 -d <int>   resolution in DPI [default: 300]
 --mono     bitonal compression (black and white only) [default]
 --color    DjVuPhoto compression (color and grayscale images) 
 -h|--help  print this message