「TCPDF」:修訂間差異
跳至導覽
跳至搜尋
無編輯摘要 |
|||
| 第3行: | 第3行: | ||
*$pdf->SetFont('cid0jp', ", 40);可秀出繁簡中日文,但產和产無法顯示 | *$pdf->SetFont('cid0jp', ", 40);可秀出繁簡中日文,但產和产無法顯示 | ||
*$resolution= array(100, 100); 紙張大小 | *$resolution= array(100, 100); 紙張大小 | ||
==自訂字型== | |||
*$font = new TCPDF_FONTS(); | |||
*$fontX=$font->addTTFfont('../tcpdf/fonts/big5/kaiu.ttf'); | |||
*$pdf->SetFont($fontX, '', 12); | |||
==A5橫印== | ==A5橫印== | ||
*$pdf->SetMargins(0, 8, 7,true); | *$pdf->SetMargins(0, 8, 7,true); | ||
*$pdf->AddPage('L'); | *$pdf->AddPage('L'); | ||
於 2015年8月3日 (一) 23:47 的修訂
- $pdf->SetFont('stsongstdlight', ", 40); 可秀出繁簡中日文
- $pdf->SetFont('droidsansfallback', ", 12);可秀出繁簡中日文,但堃無法顯示
- $pdf->SetFont('cid0jp', ", 40);可秀出繁簡中日文,但產和产無法顯示
- $resolution= array(100, 100); 紙張大小
自訂字型
- $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');