Estepp, Dan wrote: > I would like to set the DPI of a document to something other than 72 dpi.
Be careful when you talk about DPI in the context of a PDF document. PDF doesn't really have a resolution like is the case with images. The resolution when rendering a PDF depends on the device, not on the document. > Trying to embed images that I do not want the dpi to be reduced. The > idea is to NOT change the size of the document, ie 8.5x11. Scale the images. iText doesn't downsize the images, but if you scale them to a smaller dimension, the resolution gets higher. > If I add a 200 dpi image to a 72 dpi document then the document is much > larger than 8.5x11. Please read the example under Scaling in the tutorial: http://itextdocs.lowagie.com/tutorial/objects/images/index.html#transformations I quote: To put a picture with 300dpi use a scaling of 72/300=24%. For instance: if you have a 5X5 inch image that you scan at 300 dpi, the resultant image is 1500X1500 pixels (5X300 = 1500). When you place this image in the pdf with a scaling of 24% (72/300 = 0.24), the image in the pdf will be 5X5 inch with 1500X1500 pixel at 300 dpi. The image will always be 1500X1500 pixel whatever the size. br, Bruno ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions