summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem.moulin@ens-lyon.org>2012-01-18 18:42:55 +0100
committerGuilhem Moulin <guilhem.moulin@ens-lyon.org>2012-01-18 18:42:55 +0100
commit64c01ddf79fa9a0a9a4398f46dcdbdc5e3f006ff (patch)
tree1404e5bc9e8a9d0deef876cc4017efc9a22c6456
parent132e26a92f00da2131d7b41be768bfd40223bfe8 (diff)
lpr reads pdf from (stdin)!
-rwxr-xr-xpdftool.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/pdftool.pl b/pdftool.pl
index f8562eb..ca9f2a5 100755
--- a/pdftool.pl
+++ b/pdftool.pl
@@ -181,8 +181,7 @@ on your screen.
=item B<--ps>
By default, B<PDFTool> outputs a PDF document; use this flag if
-you want a PostScript instead e.g., to pipe the output into C<lpr> (not
-possible with a PDF since reading requires random access to the data).
+you want a PostScript instead.
Note that due to a L<known limitation|http://www.ghostscript.com/doc/current/Issues.htm#Known_Limitations> of C<gs> with
the C<pswrite> device, the PostScript output might not be suitable for uses other than printing.
@@ -217,7 +216,7 @@ The following comand can be used to remotely crop a PDF file, convert it
to A4 paper, and rearrange the pages to locally print a (PostScript)
booklet with custom margins:
-C<< ssh remote pdftool.pl -cpA4 --book -2 -b2cm -m-1cm --ps --auto-rotate < in.pdf |
+C<< ssh remote pdftool.pl -cpA4 --book -2 -b2cm -m-1cm --auto-rotate < in.pdf |
lpr -o Duplex=DumplexTumble >>
=head1 REQUIREMENTS
@@ -533,6 +532,7 @@ sub pdftops {
# Convert to PS
# TODO: use gs & pswrite the day it'll handle fonts properly
+ # (the flag `-origpagesizes' seems not to be portable)
my @cmd = ('pdftops', '-origpagesizes', $infile, '-');
push @cmd, '-f', $first if defined $first;
push @cmd, '-l', $last if defined $last;