Zend Framework Render Barcodes Into PDF Pages

北城余情 提交于 2019-11-29 08:28:22
$barcodeOptions = array('text' => 'ZEND-FRAMEWORK-1', 'font' => __DIR__ . "/FRE3OF9X.TTF"); 

TTF file (FRE3OF9X.TTF or what have you) must exist.

Tom Haws

I believe that the complete answer to your question has since been added here: Zend Framework Render Barcodes Into Multiple PDF Pages with other content

The key seems to be:

  1. Create the Pdf library page content on a page.
  2. Add the Pdf library page to the pdf.
  3. Print the Barcode library barcodes onto that page of the pdf using something like Zend_Barcode::factory('code39', 'pdf', $barcodeOptions, $rendererOptions)->setResource($pdf, $page_index)->draw();
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!