PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com
_____________________________________________________________

Hi Leonard,

Thanks for the info, here is my issue.  I am scanning in an image using my own TWAIN 
implementation and then importing it into a PDF.  I get a BMP from TWAIN, save it as a 
PDF using LEADTools (1 page) and then use PDDocInsertPages to put the page in my 
document.  If the image is scanned in at close to 72dpi, the page view "zoom factor" 
in Acrobat is close to 100%.  If I scan an image at 300dpi, the image is displayed 
fine on the screen in Acrobat, but it is zoomed out to around 20%.  If I view at 100%, 
I only see a portion of the image.  I believe this has to do with the media box / page 
dimensions, but can't figure out how to fix it.  I assume this is related to the fact 
that PDF coordinates are based on 72dpi?  If I manually reset the page's media box, 
the image is cropped.  Any ideas?  Thanks.

-Chris

-----Original Message-----
From: Leonard Rosenthol [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 18, 2004 1:41 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED] 
Subject: Re: [PDFdev] Media Box Dimensions



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


To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfdev.html

Reply via email to