Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/255.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 表中的Pdflib问题_Php_Pdf_Pdf Generation_Pdflib - Fatal编程技术网

Php 表中的Pdflib问题

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 *

我对这张桌子有意见。当我想将其放置在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 */
$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有更多经验的人也可以查看一下……是的,如果可能,我会共享,以帮助或通过聊天