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: 
```
// 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);

```
Edit tcpdf.php and add a new page type or modify an existing type to your page size.