2009-08-27 43 views

回答

1

我认为你需要弄清楚像素每英寸有多少的,然后使用方法setImageScale(float $scale);

例如:

$this->setImageScale(24.5); 

那么你的代码应该工作,设置规模后:

$this->Image($tmp, 0, 0, 4, 6, 'gif', '', '', true); 
3

我想这是因为你不使用大写字母“P”

发生
$this->setpageUnit('in'); 

也许是应为:

$this->setPageUnit('in'); 
+0

是的,良好的抓,这应该被标记为正确答案。 http://www.tcpdf.org/doc/code/classTCPDF.html#aad2c0cbfe5b6330eed5850f87c2a32d9 – 2013-01-09 17:28:56