Zend Framework Render Barcodes Into PDF Pages

后端 未结 2 1540
感动是毒
感动是毒 2020-12-18 13:51

I\'m trying to create PDF pages with barcodes that have correct margins to be printed on sheets of labels (If you have another idea of how to print barcodes onto labels with

相关标签:
2条回答
  • 2020-12-18 14:19

    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();
    0 讨论(0)
  • 2020-12-18 14:28
    $barcodeOptions = array('text' => 'ZEND-FRAMEWORK-1', 'font' => __DIR__ . "/FRE3OF9X.TTF"); 
    

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

    0 讨论(0)
提交回复
热议问题