Вот мой пример кода. Штрих-коды генерируются нормально.
Код: Выделить всё
$data = $pdf->serializeTCPDFtag('write1DBarcode', array($consignment_ID, 'C128', '', '', 165, 20, 0.4, array('position' => 'S', 'border' => false, 'padding' => 4, 'fgcolor' => array(0, 0, 0), 'bgcolor' => array(255, 255, 255), 'text' => false, 'font' => 'helvetica', 'fontsize' => 8, 'stretchtext' => 4), 'N'));
$data2 = $pdf->serializeTCPDFtag('write1DBarcode', array($consignment_ID, 'C128', '', '', 174, 20, 0.4, array('position' => 'S', 'border' => false, 'padding' => 4, 'fgcolor' => array(0, 0, 0), 'bgcolor' => array(255, 255, 255), 'text' => false, 'font' => 'helvetica', 'fontsize' => 8, 'stretchtext' => 4), 'N'));
$html = '';
$html .= '';
// output the HTML content
$pdf->writeHTML($html, true, 0, true, 0);
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
//Close and output PDF document
$pdf->Output('Label.pdf', 'I');
Я просмотрел https://tcpdf.org/examples/example_013/, но не вижу способа применить эти преобразования к сериализованному тег.
Подробнее здесь: https://stackoverflow.com/questions/786 ... ed-in-html