I am using mpdf library in PHP to create a pdf file from HTML. I need to set the page mode in Custom mode
[mPDF 7.x] See format parameter and Example #2 on mPDF __construct documentation page:
// Define a page size/format by array - page will be 190mm wide x 236mm height
$mpdf = new \Mpdf\Mpdf(['format' => [190, 236]]);
The format is an array of width and height in millimeters.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With