tcpdf慢及常用的一些方法及问题

$pdf->SetFillColor(255, 255, 255);
// set cell padding
$pdf->setCellPaddings(1, 1, 1, 1);
// set cell margins
$pdf->setCellMargins(1, 1, 1, 1);
$pdf-> SetFont('droidsansfallback', '', 10);

获取页面的宽度:
$pdf->getPageWidth()

获取页面的高度:
$pdf->getPageHeight()

获取当前的坐标:
$pdf->GetX() , $pdf->GetY()

Cell($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=0, $link='', $stretch=0, $ignore_min_height=false, $calign='T', $valign='M')

MultiCell($w, $h, $txt, $border=0, $align='J', $fill=0, $ln=1, $x='', $y='', $reseth=true, $stretch=0, $ishtml=false, $autopadding=true, $maxh=0)

writeHTMLCell($w, $h, $x, $y, $html='', $border=0, $ln=0, $fill=0, $reseth=true, $align='', $autopadding=true)

$pdf->Ln(1,TRUE);

$pdf->Rect($x, $y, $w, $h, 'F', array(), array());

$pdf->Image($img_src, $x, $y, $w, $h, 'JPG', '', '', true, 300, '', false, false, 0, 'CM', false, false);

$pdf -> AddPage('P', 'A4');

设置坐标:
$pdf->SetXY($x, $y);

还有图像问题的BUG,。待更新测试后再写,生成慢就是在这里

 



转载于:https://www.cnblogs.com/myx/archive/2013/04/28/tcpdf.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值