From 6e7bdec7b361d1bb775ef9139825140666576e85 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Fri, 6 Jan 2012 17:56:19 +0100 Subject: wibble --- pdftool.pl | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/pdftool.pl b/pdftool.pl index f2befe5..b5f897d 100755 --- a/pdftool.pl +++ b/pdftool.pl @@ -66,21 +66,33 @@ B does the following passes on the input document: =over 4 -=item * Convert from PDF to PostScript if necessary (if possible, +=item * + +Convert from PDF to PostScript if necessary (if possible, that is if all page numbers are relative to the begining of the document, convert only the smallest interval that contains all the selected pages), -=item * Select the page range if necessary (option B<-s>), +=item * + +Select the page range if necessary (option B<-s>), + +=item * -=item * Calculate the minimal bounding box (option B<-c>), +Calculate the minimal bounding box (option B<-c>), -=item * Rearrange pages for printing books or booklets if necessary +=item * + +Rearrange pages for printing books or booklets if necessary (option B<--book>), -=item * Put multiple pages per sheets (option B<-n>), and +=item * + +Put multiple pages per sheets (option B<-n>), and + +=item * -=item * "Flatten" the output, and convert back to PDF if necessary +"Flatten" the output, and convert back to PDF if necessary (option B<--pdf>). =back @@ -210,20 +222,20 @@ The following comand can be used to remotely crop a PDF file, convert it to A4 paper, and rearrange the pages to print a booklet with custom margins: -C<< ssh remote pdftool.pl -cpA4 --book -2 -b2cm -m-1cm < in.pdf | \ +C<< ssh remote pdftool.pl -cpA4 --book -2 -b2cm -m-1cm < in.pdf | lpr -o Duplex=DumplexTumble >> =head1 REQUIREMENTS Requires C available via the command line (only if the input is a PDF). Depending on your own version of this program, you might need to -hack the source yourself to remove the `-origpagesizes' option :-/. +hack the source yourself to remove the C<-origpagesizes> option :-/. Requires PSUtils installed and available via the command line -(http://www.tardis.ed.ac.uk/~ajcd/psutils/). +(L). Requires GhostScript installed and available via the command C -(http://ghostscript.com/). +(L). =head1 AUTHOR -- cgit v1.2.3