[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: stupid question about gs



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;
e.g.,
# 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

HTH,


John P.
-- 
huiac@camtech.net.au
john@huiac.apana.org.au
http://www.mdt.net.au/~john Debian Linux admin & support:technical services


Reply to: