Re: stupid question about gs
- To: email@example.com
- Subject: Re: stupid question about gs
- From: John Pearson <firstname.lastname@example.org>
- Date: Thu, 6 Apr 2000 09:45:21 +0930
- Message-id: <20000406094521.B4332@huiac.localnet>
- Mail-followup-to: email@example.com
- In-reply-to: <20000406091203.A4332@huiac.localnet>; from firstname.lastname@example.org on Thu, Apr 06, 2000 at 09:12:03AM +0930
- References: <7C6rQ.A.btB.s4164@murphy> <20000406091203.A4332@huiac.localnet>
On Thu, Apr 06, 2000 at 09:12:03AM +0930, John Pearson wrote
> On Wed, Apr 05, 2000 at 11:39:23PM +0800, maths wrote
> > hello everybody
> > with the helps of this list, now my printer worked. but i
> > have a stupid question about gs: how to specify the pages i
> > want to print? "gs -?" told me: embed %d or %ld for page#
> > but get me an exmple, i had try to print page 5 of foo.pdf use
> > # gs -dSAFER -dNOPAUSE -sDEVICE=epsonc -sOutputFile=\|lpr foo.pdf %5
> > it seem to not work.
> %d instructs gs to "burst" the document, one file to a page;
> # gs -dSAFER -dNOPAUSE -sDEVICE=epsonc -sOutputFile=foo.page-%d.pdf
> produces foo.page-1.pdf, foo.page-2.pdf, etc.
> To do what you want, try using psselect (from the psutils package):
> # gs -dSAFER -dNOPAUSE -sDEVICE=epsonc -sOutputFile='|psselect -p5' | lpr
Aargh! Make that:
# psselect -p5 | gs -dSAFER -dNOPAUSE -sDEVICE=epsonc -sOutputFile=\|lpr
*That* stands a half-way decent chance of working.
Someone else asked about printing pages in reverse order;
of the source is postscript, you can use psselect -r.
http://www.mdt.net.au/~john Debian Linux admin & support:technical services