我正在尝试创建一个PDF与两个不同的二维码在同一行,但我得到的第二个二维码在不同的大小,请检查下面的代码和图片。
$pdf->write2DBarcode('http://xxxx.xxx.php?sc='.$linha_id_to_print->xxx, 'QRCODE,Q', 7,62,15,15, $style, 'N');
$pdf->write2DBarcode('http://xxxx.xxx.php?sc='.$linha_id_to_print->xxx, 'QRCODE,Q', 32,62,15,15, $style, 'N');
$pdf->SetFont('arial','',5);
$pdf->MultiCell(19, 2, 'FIRST QR', 1, 'C',false, 0, 5, 78, true, 0, false, true, 0, 'T', false);
$pdf->MultiCell(19, 2, 'SECOND QR', 1, 'C',false, 0, 30, 78, true, 0, false, true, 0, 'T', false);

如何修复它?
谢谢
发布于 2018-10-09 07:06:31
确保第二个qrcode没有推断出页边距。
您可以使用以下方法修改页边距:
$pdf->SetMargins(0,0, 0);
$pdf->SetHeaderMargin(0);
$pdf->SetFooterMargin(0);https://stackoverflow.com/questions/51942981
复制相似问题