วันจันทร์ที่ 18 เมษายน พ.ศ. 2565

yii2-mpdf

 http://dixonsatit.github.io/yii2-learning/รวมของดีๆๆ

ทดสอบแบบ html

public function actionPdf() { $mpdf = new mPDF; $mpdf->WriteHTML('<p>Hallo World</p>'); $mpdf->Output(); exit; }

Export Menu เป็นบทความที่เข้าใจง่ายมากครับ

http://dixonsatit.github.io/2014/11/30/install-krajee-yii2-grid.html

การเพิ่มหรือเปลี่ยนฟอนต์ Garuda Angsana thsarabun 1.สิ่งที่ทำงานร่วมกัน yii2-mpdf กับ mpdf -vendor/mpdf/mpdf/ttfont เพิ่มฟอนต์เข้าไปตรงนี้ ***vendor/mpdf/mpdf/config_fonts.php แก้ไขฟอนต์ที่ต้องการ บรรทัด 343 $this->sans_fonts = array('garuda','dejavusanscondensed',

บรรทัด 292 "Garuda" => array(/* Thai */ 'R' => "Garuda.ttf",

บรรทัด 226 "garuda" => array( /* Thai */ 'R' => "Garuda.ttf", 'B' => "Garuda-Bold.ttf", 'I' => "Garuda-Oblique.ttf", 'BI' => "Garuda-BoldOblique.ttf", 'useOTL' => 0xFF, ),

2./var/www/html/m30-covid19/vendor/kartik-v/yii2-mpdf

ปรับที่ asset ->kv-mpdf-bootstrap.css ตัวนี้ไม่ต้องปรับอะไร

เป็นอันเรียบร้อยครับ https://www.thaicreate.com/community/html-to-pdf-and-add-fontthai-mpdf-php.html https://pongsathon-janyoi.medium.com/ https://programmerthailand.com/ https://nakomah.com/blog/ http://dixonsatit.github.io/2014/11/30/install-krajee-yii2-grid.html https://programmerthailand.com/tutorial/post/view?id=159 //Barcode

ไม่มีความคิดเห็น:

แสดงความคิดเห็น