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/p/tcpdf.html