[barcode] barcode on PCL printer

Andrea Scopece a.scopece@vizzavi.it
Fri, 18 Oct 2002 14:55:09 -0000


Thanks for the patch.

the pcl code is derived from a conversion of postscript engine,
and in the past, a bug (postcript bars are drawed providing the middle
coordinates of bars,
and pcl bars are drawed providing the upper-left corner of the bar), were
corrected.

Your patch probably correct another bug, altought I did't noticed it before,
some users
reported difficult to read pcl barcode.

Please, can you report more info about this problem?

printer ?
barcode reader ?
encodings ?
size of barcode ?

Next week I will have available a POSTCRIPT/PCL printer, so I'll double
check
both output (PCL & PS).

Andrea Scopece


----- Original Message -----
From: <r.krebs@netlab.ch>
To: <barcode@lists.linux.it>
Sent: Friday, October 18, 2002 8:01 AM
Subject: [barcode] barcode on PCL printer


> Hi,
>
> I had a problem on some barcode readers to read labels printed with PCL
> (Since I don't use postscript, I don't know if the same problem also
exists
> there.)
> The reason was, that the width of the bars and white-spaces are rounded to
> the next decipoint. This had the effect that a multiple-width bar was
> sometimes one decipoint wider than expected.
>
> The solution is to round the scaling-factor to 0.1:
>
> File pcl.c, line 117(?) after the '#endif'
> scalef = ((double)((int)(scalef * 10 + 0.5))) / 10;
>
> Best regards
> Roland Krebs
>
>
> _______________________________________________
> barcode mailing list
> barcode@lists.linux.it
> http://lists.linux.it/listinfo/barcode