This example on tcpdf's website shows how to use page formats like A4, A5 etc, but how do I set tcpdf to use custom sizes like 175mm x 266 mm?
Solutions appreciated.
This example on tcpdf's website shows how to use page formats like A4, A5 etc, but how do I set tcpdf to use custom sizes like 175mm x 266 mm?
Solutions appreciated.
The truth, now you can solve it like this.
//AddPage [P(PORTRAIT),L(LANDSCAPE)],FORMAT(A4-A5-ETC)
$pdf->AddPage('P','A5');
// 8.5 X 13 inches paper (8.5, 13)
// Convert inches to mm (215.9, 330.2)
$pdf = new Pdf('P', 'mm', array(215.9, 330.2), true, 'UTF-8', false);