TCPDF
跳至導覽
跳至搜尋
- $pdf->SetFont('stsongstdlight', ", 40); 可秀出繁簡中日文
- $pdf->SetFont('droidsansfallback', ", 12);可秀出繁簡中日文,但堃無法顯示
- $pdf->SetFont('cid0jp', ", 40);可秀出繁簡中日文,但產和产無法顯示
//$pdf->SetFont('msungstdlight', , 18, , true); // 繁中, 但是效果不好,字會偏移 //$pdf->SetFont('dejavusans', , 14, , true); // 預設 utf8
- $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');