Current-Users archive

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

Re: Printing question



In article <Pine.NEB.4.64.0802052056020.14062%quicky.whooppee.com@localhost>,
Paul Goyette  <paul%whooppee.com@localhost> wrote:
>On Wed, 6 Feb 2008, Christos Zoulas wrote:
>
>> It should talk to 9100.
>>
>> Install foomatic and put something like:
>>
>> lp-color:\
>>        :mx#0:\
>>        :af=/usr/pkg/share/foomatic/ppd/HP/HP-OfficeJet_G95-hpijs.ppd: \
>>        :if=/usr/pkg/bin/foomatic-rip: \
>>        :lp=9100%lp-color.astron.com@localhost:\
>>        :sd=/var/spool/lpd/lp-color:\
>>        :lf=/var/spool/lpd/lp-color/log:\
>>        :sh:
>
>OK, did that, but it's doing strange stuff.
>
>Here's my /etc/printcap file:
>
>lp:\
>         :lp=9100@printer:\
>         :sd=/var/spool/lpd/lp:\
>         :lf=/var/log/lpd/lp.log:\
>         :sh:\
>         :pw#80:
>
>lp-ps:\
>         :af=/usr/pkg/share/foomatic/ppd/HP/HP_DEskJet_6940-hpijs.ppd:\
>         :if=/usr/pkg/bin/foomatic-rip:\
>         :lp=9100@printer:\
>         :sd=/var/spool/lpd/lp-ps:\
>         :lf=/var/spool/lpd/lp-ps/log:\
>         :sh:
>
>
>If I just take a simple text file a.txt and send it to the printer with
>
>       lpr -P lp a.txt
>
>The output seems to be missing a whole lot of \r characters!  The first 
>line prints correctly, the second line is printed one line below BUT 
>immediately to the right of the end of the first line, etc.  And nothing 
>line-wraps, so pretty soon everything is printing beyond the right-hand 
>margin.  I assume I need some sort of input-filter to insert something 
>to make it start new lines at the left margin?
>
>Using enscript to encode the text file as Postscript and sending the 
>result to lp-ps results in a ghostscript error - it apparently cannot 
>find a font named "Courier-Bold".  I don't know why it would want a bold 
>font since I'm just printing a plain text file.  I _do_ have the 
>ghostscript-fonts-8.11nb1 package installed, so why can't it find the 
>font?  I would expect Courier to be a rather common font.  :)  Here's an 
>excerpt from the lpd log file:
>
>foomatic-gswrapper: gs '-dBATCH' '-dPARANOIDSAFER' '-dQUIET' '-dNOPAUSE' 
>'-sDEVI
>CE=ijs' '-sIjsServer=hpijs' '-sDeviceManufacturer=HEWLETT-PACKARD' 
>'-sDeviceMode
>l=deskjet 5600' '-dDEVICEWIDTHPOINTS=612' '-dDEVICEHEIGHTPOINTS=792' 
>'-dDuplex=f
>alse' '-r300' 
>'-sIjsParams=Quality:Quality=0,Quality:ColorMode=2,Quality:MediaTy
>pe=0,Quality:PenSet=2,PS:MediaPosition=7' '-dIjsUseOutputFD' 
>'-sOutputFile=/dev/
>fd/3' '/dev/fd/0' 3>&1 1>&2
>
>Closing renderer
>Error: /invalidfont in /findfont
>Operand stack:
>    fontdict   Courier-Bold
>Execution stack:
>    %interp_exit   .runexec2   --nostringval--   --nostringval-- 
>--nostringval-
>-   2   %stopped_push   --nostringval--   --nostringval-- 
>--nostringval--   fa
>lse   1   %stopped_push   1889   1   3   %oparray_pop   1888   1   3 
>%oparray_
>pop   1872   1   3   %oparray_pop   1755   1   3   %oparray_pop 
>--nostringval-
>-   %errorexec_pop   .runexec2   --nostringval--   --nostringval-- 
>--nostringv
>al--   2   %stopped_push   --nostringval--   --nostringval--   1847   2 
>3   %o
>parray_pop
>Dictionary stack:
>    --dict:1155/1684(ro)(G)--   --dict:0/20(G)--   --dict:100/200(L)--
>Current allocation mode is local

Does ghostscript work on the ps file enscript generated?

christos




Home | Main Index | Thread Index | Old Index