zoukankan      html  css  js  c++  java
  • 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,。待更新测试后再写,生成慢就是在这里



  • 相关阅读:
    5-1
    浅谈sql中的in与not in,exists与not exists的区别
    理解SQL SERVER中的分区表
    SQLSERVER SQL性能优化
    SQL Server Profiler使用方法
    SQL Server中的三种Join方式
    执行计划
    执行计划sql
    INSERT INTO SELECT
    设计模式学习笔记-单例模式
  • 原文地址:https://www.cnblogs.com/myx/p/tcpdf.html
Copyright © 2011-2022 走看看