From 64c01ddf79fa9a0a9a4398f46dcdbdc5e3f006ff Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Wed, 18 Jan 2012 18:42:55 +0100 Subject: lpr reads pdf from (stdin)! --- pdftool.pl | 6 +++--- 1 file 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 outputs a PDF document; use this flag if -you want a PostScript instead e.g., to pipe the output into C (not -possible with a PDF since reading requires random access to the data). +you want a PostScript instead. Note that due to a L of C with the C 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; -- cgit v1.2.3