You'll likely get a rather vague answer from the iText team on this one,
I'll try to help.
 
PDF Files are Vector and Image by default.
 
A vector file is a scaleable file ie Adobe illustrator, Corel Draw, Freehand;
it uses points to create a 2-dimensional shape so there is no set DPI.
it can be rendered at any DPI.
 
An image file is called a raster.  it contains pixels set in a width by height configuration.
An image has a dpi.
for example, if you have a 10 pixel by 10 pixel image, 
 
*   *   *   *   *   *   *   *   *   *
*   *   *   *   *   *   *   *   *   *
*   *   *   *   *   *   *   *   *   *
*   *   *   *   *   *   *   *   *   *
*   *   *   *   *   *   *   *   *   *
*   *   *   *   *   *   *   *   *   *
*   *   *   *   *   *   *   *   *   *
*   *   *   *   *   *   *   *   *   *
*   *   *   *   *   *   *   *   *   *
*   *   *   *   *   *   *   *   *   *
 
you can render this image at 1 inch by 1 inch
and it would then be 10dpi.
 
if you rendered it at .5 inch by .5 inch
it would be 20dpi
 
if you rendered it at 2 inches by 2 inches
it would be 5dpi
 
Does this make sense?
 
When using iText, you need to resample your images
to be the finished dpi you want them to be at the
size you are putting it into iText.
 
for example, if you wanted a 300 dpi image in a 3 x 4 inch box in iText
your image would need to be 900 x 1200 pixels.
 
 
If you have any other questions, I will try to give you a straight answer.
 
Thanks,
Bill Ensley
Bear Printing
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Brian Timmer
Sent: Friday, February 27, 2004 3:56 PM
To: [EMAIL PROTECTED]
Subject: [iText-questions] iText question

What DPI does the resulting PDF file use? Is it different between iTextSharp and iText? I'm actually using iTextSharp.
 
Thanks,
Brian Timmer
Yeti Software, LLC
www.yetisoftware.com

Reply via email to