Php 表中的Pdflib问题
我对这张桌子有意见。当我想将其放置在PDF的中心时,它会启动以下错误: 计算出的表格宽度过大 所以我的代码如下:Php 表中的Pdflib问题,php,pdf,pdf-generation,pdflib,Php,Pdf,Pdf Generation,Pdflib,我对这张桌子有意见。当我想将其放置在PDF的中心时,它会启动以下错误: 计算出的表格宽度过大 所以我的代码如下: $searchpath = dirname(dirname(dirname(__FILE__)))."/input"; $outfile = ""; $title = "Vertical Text Alignment"; $tf=0; $tbl=0; /* Define the column widths of the first and the second column *
$searchpath = dirname(dirname(dirname(__FILE__)))."/input";
$outfile = "";
$title = "Vertical Text Alignment";
$tf=0; $tbl=0;
/* Define the column widths of the first and the second column */
$c1 = 50; $c2 = 120;$c3 = 80;
/* Define the lower left and upper right corners of the table instance.
* The table width of 200 matches the sum of the widths of the two table
* columns 80 + 120.
*/
$llx=250; $lly=800; $urx=300; $ury=50;
在这段代码中,您在哪里创建表?你知道你创造的东西的宽度只有50吗?($urx-$llx)如果可能,我会添加其他代码,我可以与您共享,您能告诉我您的@最好在这里共享相关的代码片段,以便对pdfLib有更多经验的人也可以查看一下……是的,如果可能,我会共享,以帮助或通过聊天