FPDF 自定义页面大小无法正常工作

问题描述

我想在 FPDF 上打印一个 40x30 毫米大小的页面用于条形码贴纸,但我得到了错误输出

enter image description here

这是我的代码

$orientation = 'P';
$unit = 'mm';
$size = array(40,30);
$page_width = $size[0];
$pdf = new Barcode128($orientation,$unit,$size);

//the rest of pdf...

下图是预期的输出,但我必须在横向上制作,这并不理想,因为它会在贴纸上被剪掉。

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)