TCPDF Custom page size
问题 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. 回答1: EDIT : I was just wrong : you can give an array (array($width, $height)) in parameter.. I created a tcpdf subclass where I modified a few things : getPageSizeFromFormat(); Here is the code : http://paste.pocoo.org/show/294958/. Then I call my custom class, add a new format and set a new format : $pdf = new CUSTOMPDF(PDF_PAGE