- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Fit to page when printing with lp on A3 paper?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2011 04:28 AM
тАО06-10-2011 04:28 AM
/usr/bin/X11/xwd |/usr/contrib/bin/X11/xpr -landscape -device pjetxl -density 600 -gamma 3lp -oA3 -oubin -onb -odq -s -d
The result is a landscape color print on A3. Only problem is that the size of the printed area is A4. The question is how we can get the screen capture printed 'fit-to-page' (A3)?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2011 05:54 AM
тАО06-10-2011 05:54 AM
SolutionThe "-device pjetxl" option tells the xpr command to create HP PaintJet XL-compatible PCL output. I guess this is the only reasonable choice among the available ones, right?
All the -o... options are passed to the printer model script, which must recognize the options to make them effective. Different model scripts support a different set of -o options.
If you're using the updated "generic PCL3" model script from http://www.hp.com/pond/modelscripts/index2.html then all the -o options you're using seem to be supported, so in that case the A3 paper size option will be effective.
The problem is probably that the xpr command will only produce an output sized as 8x10.5 inches by default. Neither the spooler nor the model script implement any real output scaling for PCL print jobs: it would be necessary for xpr to generate a large enough set of output pixels to cover an A3 paper.
(If I understand correctly, the 2up/4up options are implemented at the printer level, so the model script only needs to send a proper control code to activate them.)
To make xpr produce larger output, you'll have to use its -width and -height options.
Try this:
/usr/bin/X11/xwd |/usr/contrib/bin/X11/xpr -landscape -device pjetxl -density 600 -gamma 3 -width 10.5 -height 16 | lp -oA3 -oubin -onb -odq -s -d
The values for the -width and -height options are in inches. I don't know if the options will determine the printable area size before or after the -landscape option takes effect: if the output looks seriously wrong, try "-width 16 -height 10.5" instead.
You may have to tweak the values to get the output look nice.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2011 04:38 AM
тАО06-14-2011 04:38 AM
Re: Fit to page when printing with lp on A3 paper?
FYI: we're using 11.23.
I'll see if your suggestion helps. But that'll be this Thursday.... so, to be continued.
I don't know if the 'standard' HP-UX 11.23 installation includes other tools for screen capturing. Maybe there's other path of dumping the screen/active window to the printer producing fit-to-page A3 results?!?
Bye,
Marc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2011 11:36 PM
тАО06-15-2011 11:36 PM
Re: Fit to page when printing with lp on A3 paper?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2011 11:37 PM
тАО06-15-2011 11:37 PM