Current-Users archive

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

Re: Printing question

In article <>,
Paul Goyette  <> 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: \
>>        :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=9100@printer:\
>         :sd=/var/spool/lpd/lp:\
>         :lf=/var/log/lpd/lp.log:\
>         :sh:\
>         :pw#80:
>         :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' 
>CE=ijs' '-sIjsServer=hpijs' '-sDeviceManufacturer=HEWLETT-PACKARD' 
>l=deskjet 5600' '-dDEVICEWIDTHPOINTS=612' '-dDEVICEHEIGHTPOINTS=792' 
>alse' '-r300' 
>pe=0,Quality:PenSet=2,PS:MediaPosition=7' '-dIjsUseOutputFD' 
>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-- 
>-   2   %stopped_push   --nostringval--   --nostringval-- 
>--nostringval--   fa
>lse   1   %stopped_push   1889   1   3   %oparray_pop   1888   1   3 
>pop   1872   1   3   %oparray_pop   1755   1   3   %oparray_pop 
>-   %errorexec_pop   .runexec2   --nostringval--   --nostringval-- 
>al--   2   %stopped_push   --nostringval--   --nostringval--   1847   2 
>3   %o
>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?


Home | Main Index | Thread Index | Old Index