Commits

Anonymous committed f5171f1

added pdf-trim-to-djvu

Comments (0)

Files changed (1)

 
 Some scripts to deal with PDF files:
 
-=== edit-pdf-desc ==
+=== edit-pdf-desc ===
 
 A simple GUI tool to edit PDF metadata (Subject, Author, Keywords etc.).
 
 Source: [[http://bitbucket.org/jetxee/pdfscripts/src/tip/edit-pdf-desc.py|edit-pdf-desc.py]]
 
 **Usage**: {{{edit-pdf-desc.py filename.pdf}}}
+
+=== pdf-trim-to-djvu ===
+
+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: [[http://bitbucket.org/jetxee/pdfscripts/src/tip/pdf-trim-to-djvu|pdf-trim-to-djvu]]
+
+{{{
+Usage: pdf-trim-to-djvu [options] document.pdf
+
+Options:
+ -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
+}}}