psliwa / PHPPdf

Pdf and graphic files generator library written in php
http://ohey.pl
MIT License
339 stars 77 forks source link

Barcode is not recognized by scanner #86

Open tsifra opened 9 years ago

tsifra commented 9 years ago

Hello,

I have very strange issue. Barcodes generated by PHPPdf can't be read with scanner. In the same time same barcode generated by Mopa's bundle or raw zend_pdf looks exactly the same and can be read by scanner.

I've tried to change bar-thin-width, bar-thick-width with no luck. Have no idea what is wrong. Maybe you've seen something like this or have any ideas?

tsifra commented 9 years ago

Problem is related with bars width. Don't know how to fix it in PHPPdf. Have to use Mopa's bundle. <img src="{{ root_path }}/../web{{ mopa_barcode_url('code128', product.sku, {'barcodeOptions': { 'barHeight': 30, 'drawText': false, 'withQuietZones': false }, 'rendererOptions': { 'height': 0, 'width': 0 }}) }}" />