Re: Probably not a php question, but here goes..how do I convert pixels to page units?
| From: | Marek Kilimajer | Date: | Mon, 30 Aug 2004 19:09:02 +0000 |
| Subject: | Re: Probably not a php question, but here goes..how do I convert pixels to page units? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-195187@lists.php.net to get a copy of this message | ||
Brent Clements wrote:
I have a pdf class that has a function that allows you to add an image to the pdf your creating. The problem is that the function requires that the height and width of the image be specified in page units. Well I know what the pixel height and width are of my image, how do I convert it over to page units so that the image displays correctly on the pdf? I just need the equation if you guys can think of one. THanks BrentI think you need to divide by 2.834 to get the image size in mm