summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem.moulin@ens-lyon.org>2012-01-06 17:56:19 +0100
committerGuilhem Moulin <guilhem.moulin@ens-lyon.org>2012-01-06 17:57:22 +0100
commit6e7bdec7b361d1bb775ef9139825140666576e85 (patch)
treec8ca4455d4d06ec868f8be2fe6db64fd5d0e4fb5
parent8d5d61fc79ac8403272222f8921b33f95480b831 (diff)
wibble
-rwxr-xr-xpdftool.pl32
1 files 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<PDFTool> 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<pdftops> 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<http://www.tardis.ed.ac.uk/~ajcd/psutils/>).
Requires GhostScript installed and available via the command C<gs>
-(http://ghostscript.com/).
+(L<http://ghostscript.com/>).
=head1 AUTHOR