Results 1 to 2 of 2
Current Setup:
Oracle Unbreakable Linux v4 (aka: Redhat ES Linux 4.0 with Oracles jpgs during boot).
LPRng v 3.7.4 (used for compatibility with legacy linux built custom programs and reports)
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-24-2008 #1
lprng/hp laserjet/landscape printing issue
Current Setup:
Oracle Unbreakable Linux v4 (aka: Redhat ES Linux 4.0 with Oracles jpgs during boot).
LPRng v 3.7.4 (used for compatibility with legacy linux built custom programs and reports)
HP laserjet 4050 ( network printer at local IP 192.168.10.207 ).
Issue:
For the life of me, i just cannot figure out how to print a landscape PDF to this printer. It always seems to want to print it as portrait. Ive pasted my printcap file below with 3 test setups for the same printer. Here is what i have tried that hasnt ended in an error, but still prints portrait.
lpr -P test3 -Z landscape landscape_printer_test.pdf
lpr -P test21 -Z landscape landscape_printer_test.pdf
lpr -P test3 -Z ORIENT1=true landscape_printer_test.pdf
lpr -P test3 -Z ORIENT1=false landscape_printer_test.pdf
As a side note, i could get it to print landscape (sort of) using a2ps, but then it actually printed 2 portrait pages side-by-side on a single physical page in landscape orientation. We need a single landscape oriented page.
Any ideas or suggestions would be greatly appreciated...
Thanks
--Brett
/etc/printcap file:
# generic laserjet ppd
test2:\
:ml=0:\
:mx=0:\
:sd=/var/spool/lpd/test2:\
:af=/var/spool/lpd/test2/test2.acct:\
:ld=:\
:tr=:\
:sh:\
:rm=192.168.10.207:\
:lpd_bounce=true:\
:if=/usr/bin/foomatic-rip:\
:ppd=/usr/local/lib/laserjet.ppd:
# generic laserjet PPD with filter_options and prefix_z
test21:\
:ml=0:\
:mx=0:\
:sd=/var/spool/lpd/test21:\
:af=/var/spool/lpd/test21/printer.acct:\
:ld=:\
:tr=:\
:sh:\
:rm=192.168.10.207:\
:lpd_bounce=true:\
:if=/usr/bin/foomatic-rip:\
:filter_options= --lprng $Z :\
:prefix_z=pagesize=a4 landscape:\
:ppd=/usr/local/lib/laserjet.ppd:
# specific PPD generated from 'foomatic-ppdfile -d hpijs -p HP-LaserJet_4050'
test3:\
:ml=0:\
:mx=0:\
:sd=/var/spool/lpd/test3:\
:af=/var/spool/lpd/test3/printer.acct:\
:ld=:\
:tr=:\
:sh:\
:rm=192.168.10.207:\
:lpd_bounce=true:\
:if=/usr/bin/foomatic-rip:\
:ppd=/usr/libexec/filters/laserjet4050.ppd:
- 06-25-2008 #2
altering the PPD ???
maybe i should look at a plan-B. Is there a way to edit the PPD (laserjet.ppd) so that it always prints in landscape? If i can do that, then i can setup a dedicated print queue for only landscape printouts.
Thanks
--Brett


Reply With Quote
