Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to Specify Page Range to be printed in PostScript File

812156Nov 10 2010 — edited Nov 12 2010
Hi Friends,

I have a PS File to be printed. PS Level 3.

I can specify some of the print attributes such as No.of.Copies, Collate, Duplex, Tumble, Page Size. etc..

%!PS-Adobe-3.0
… Document prolog …
%%BeginSetup
<< /NumCopies 2 /Collate false >> setpagedevice
%%BeginFeature: *Duplex Duplex NoTumble
<< /Duplex true
/Tumble false
setpagedevice % 0 BeginPage
%%EndFeature
%%BeginFeature: *PageSize Letter
<< /PageSize [612 792]
/ImagingBBox null
setpagedevice % 0 2 EndPage 0 BeginPage
%%EndFeature
%%EndSetup

But i could not find a way to specify page range to be printed. For example, If my PS file have 5 page, I want to print only the pages 2-4. Please help me out sorting this.

Also If Possible, I need help on setting attributes like NumberUp, Finishings, Orientation.

But PageRange is must for my requirement. Please help me out.

Thanks,
Arasu
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 10 2010
Added on Nov 10 2010
1 comment
1,660 views