TCPDF Custom page size

Viewed 110452

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.

7 Answers
// 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);
Related