PDF417 characters slightly misaligned
3 posts • Page 1 of 1
PDF417 characters slightly misaligned
When I print a PDF417 barcode using the GUI encoder, it looks absolutely perfect. Then when I try to print one out using Crystal Reports, the barcode characters come out misaligned slightly. See the image below...
It's kind of hard to see it because of the scan however the right hand side has some roughly 1 pixel "shifts" in the barcode. There are also thin horizontal lines running through the middle where those white dots are on the right and left side of that thick vertical bar. Can anyone help with this?
Thanks
It's kind of hard to see it because of the scan however the right hand side has some roughly 1 pixel "shifts" in the barcode. There are also thin horizontal lines running through the middle where those white dots are on the right and left side of that thick vertical bar. Can anyone help with this?
Thanks
- jbonds(Legacy member)
Re: PDF417 characters slightly misaligned
I believe you made this image by magnifying the print result. It is normal to see that 1 printer pixel is shifted.
The font itself contains the drawing commands. Most of display/printing devices are pixels based. A pixel can either be light or dark. The process of turning the the drawing commands into an array of pixels is called Rasterization. The rasterization usually involves float-point calculation and can not be accurate.
If you print a circle and magnify the print by 10 times, you will see that the smooth circle becomes "jagged".
The rasterizer used by Crystal Reports is not a good one, especially under low resolution. You can find more defects in the print preview.
The problem does not impact the reading. Under printer resolution 200 dpi, a pixel is approximately 5 mils wide. Most scanners are not able to detect such a length. Even they do, the width of a PDF417 module is several times larger than the width of 1 pixel. Unless you are looking to print very small symbols, or use a very low-resolution printer, these factors can be ignored.
The font itself contains the drawing commands. Most of display/printing devices are pixels based. A pixel can either be light or dark. The process of turning the the drawing commands into an array of pixels is called Rasterization. The rasterization usually involves float-point calculation and can not be accurate.
If you print a circle and magnify the print by 10 times, you will see that the smooth circle becomes "jagged".
The rasterizer used by Crystal Reports is not a good one, especially under low resolution. You can find more defects in the print preview.
The problem does not impact the reading. Under printer resolution 200 dpi, a pixel is approximately 5 mils wide. Most scanners are not able to detect such a length. Even they do, the width of a PDF417 module is several times larger than the width of 1 pixel. Unless you are looking to print very small symbols, or use a very low-resolution printer, these factors can be ignored.
- benz(Legacy Member)
Re: PDF417 characters slightly misaligned
The above image is a scan of a printed barcode. It just seemed strange to me that it would print perfectly with the GUI Encoder and not with Crystal Reports.
- jbonds(Legacy member)
3 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest