Re: stupid question about gs
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