psliwa/PdfBundle

Error Barcode

Closed this issue · 1 comments

Hi i have this error

FatalErrorException : Error: Class 'Zend\Barcode\Object\Code128' not found in ......../vendor/psliwa/php-pdf/lib/PHPPdf/Core/Node/Barcode.php in line 175

Thanks advance

If you want to use barcodes, you should add Zend\Barcode and Zend\Validator packages to your composer.json file.

For example:

"require": {
    ...
    "psliwa/pdf-bundle": "*",
    "zendframework/zend-barcode": "*",
    "zendframework/zend-validator": "*"
    ...
}