Operating System - HP-UX
1829307 Members
2256 Online
109989 Solutions
New Discussion

using lp, print only first 2 pages

 
Kamran Hussain_1
Occasional Contributor

using lp, print only first 2 pages

Is it possible to print, using lp, print only first 2 pages of a 10 pages doc ?
1 REPLY 1
Jordan Bean
Honored Contributor

Re: using lp, print only first 2 pages


This is a feature of the interface script.

For example, instead of sending only the requested pages to the printer, the basic PCL5 model script (in /usr/lib/lp/model/) simply inserts the PJL JOB START/END instruction with the entire document.

The option is P#[:#]. You can specify a start page or both a start page and end page.

lp -dprinter -oP3

will start printing at page 3

lp -dprinter -oP3:4

wile start printing at page 3 and end printing at page 4.