I was trying to determine what is the size of the A4 page in the metric used by PDF::Create. The lines in the synopsis:
$page2->line(0, 0, 612, 792);
$page2->line(0, 792, 612, 0);
are not going from corner to corner so I tried some other numbers. On my computer these values
seem to be quite close to the 4 corners:
$page2->line(0, 0, 612, 865);
$page2->line(0, 845, 612, -20);
but there seem to be something wrong as one of the coordinates in negative.
What am I missing here?