PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com _____________________________________________________________
At 06:59 AM 2/18/2004, Chris Cyr wrote:
I am using Acrobat 5.0 SDK with C++ to create a plugin. I first create a new document and add a blank page to it by calling PDDocCreatePage(PDDoc doc, int afterPageNum, ASFixedRect mediaBox). I am trying to figure out what the dimensions should be for my mediabox to create a regular 8.5" x 11" page (top, bottom, left, right). Thanks.
Although it's not really pixels, if you think about PDF coordinates as being the pixels on a bitmap at 72dpi, all your math will work. AND don't forget that 0,0 (the origin) is bottom left.
So to figure out the size of a mediabox, for example, you can do:
8.5 * 72 and 11 * 7.2 for the values.
Leonard --------------------------------------------------------------------------- Leonard Rosenthol <mailto:[EMAIL PROTECTED]> Chief Technical Officer <http://www.pdfsages.com> PDF Sages, Inc. 215-629-3700 (voice) 215-629-0789 (fax)
To change your subscription: http://www.pdfzone.com/discussions/lists-pdfdev.html
