Hy guys,
how can i display a barcode with Zend_PDF ?
this is my code:
$config = new Zend_Config(array(
'barcode' => 'code39',
'barcodeParams' => array('text' => '11020109'),
'renderer' => 'image',
'rendererParams' => array('imageType' => 'gif'),
));
$renderer = Zend_Barcode::factory($config)->render();
now how can i render it to my pdf?
i try without succes with:
$barcode = Zend_Pdf_Image::imageWithPath($renderer);
$page->drawImage($barcode, 10, 510, 290, 550);
thanks
The following should get you going, there is 3 things you have to change, your renderer, your method to render the barcode to the pdf and for some obscure reason, you have to include a font to your Zend_Barcode or you will get an error