I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2010-02-14 10:24:50.755748-08 by szabgab
What is the size of an A4 sheet?
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?

Direct Responses: 12441 | Write a response
Posted on 2010-02-21 12:02:46.111542-08 by szabgab in response to 12390
Re: What is the size of an A4 sheet?
Markus sent me the following reply in e-mail:

The units used in PDF::Create are the same as Adobe uses for PDF and Postscript a unit called 'point'. This unit represents the smallest addressable unit in a 72DPI device. As a result a A4 portrait page is 595 points wide and 842 point high. These numbers are used to define the A4 page size in the get_page_size("A4") subroutine.

These numbers should be your limits when drawing on a A4 page.

Direct Responses: Write a response