I’m not able to get the exact result after page 1 with 12 qrcodes
So far I tried this code, and I’m expecting to display 12 QR code every page.
$x = 20;
$y = 30;
$size = 50;
$pdf->AddPage();
foreach($results as $row){
$data = $row->codes;
$pdf->write2DBarcode($data, 'QRCODE,H', $x, $y, $size, $size, $style, 'N');
$x += $size + 10;
if ($x > 160) {
$x = 20;
$y += $size + 10;
}
}
ob_end_clean();
$pdf->Output('example_050.pdf', 'I');
New contributor
Mir is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.