Question: [This example](https://tcpdf.org/examples/example_028/) 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.

Answer: 
On the newer TCPDF version you can define the page size in multiple ways:

* All standard page formats are already defined (more than 300 types).
* You can simply define a page size by defining an array with 2 numbers: width, height (regardless the page orientation).
* Alternatively, you can define advanced page details (MediaBox, Cropbox, BleedBox, TrimBox, ArtBox) as explained on the documentation of the `setPageFormat()` method at <http://www.tcpdf.org>.

Check also the default examples no. 28 and 60 at <http://www.tcpdf.org>.
```
// 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);

```