「TCPDF」:修訂間差異
跳至導覽
跳至搜尋
無編輯摘要 |
|||
| 第2行: | 第2行: | ||
*$pdf->SetFont('droidsansfallback', ", 12);可秀出繁簡中日文,但堃無法顯示 | *$pdf->SetFont('droidsansfallback', ", 12);可秀出繁簡中日文,但堃無法顯示 | ||
*$pdf->SetFont('cid0jp', ", 40);可秀出繁簡中日文,但產和产無法顯示 | *$pdf->SetFont('cid0jp', ", 40);可秀出繁簡中日文,但產和产無法顯示 | ||
*$resolution= array(100, 100); | *$resolution= array(100, 100); $pdf->AddPage('P', $resolution); 紙張大小 | ||
==自訂字型== | ==自訂字型== | ||
*$font = new TCPDF_FONTS(); | *$font = new TCPDF_FONTS(); | ||
於 2015年8月11日 (二) 14:14 的修訂
- $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');