TCPDF

出自TSK WIKI
於 2015年8月11日 (二) 14:14 由 Root​(留言 | 貢獻) 所做的修訂
跳至導覽 跳至搜尋
  • $pdf->SetFont('stsongstdlight', ", 40); 可秀出繁簡中日文
  • $pdf->SetFont('droidsansfallback', ", 12);可秀出繁簡中日文,但堃無法顯示
  • $pdf->SetFont('cid0jp', ", 40);可秀出繁簡中日文,但產和产無法顯示
  • $resolution= array(100, 100); $pdf->AddPage('P', $resolution); 紙張大小

自訂字型

  • $font = new TCPDF_FONTS();
  • $fontX=$font->addTTFfont('../tcpdf/fonts/big5/kaiu.ttf');
  • $pdf->SetFont($fontX, ", 12);

A5橫印

  • $pdf->SetMargins(0, 8, 7,true);
  • $pdf->AddPage('L');