Re: question about dpi

2017-10-26 Thread Tilman Hausherr
Sorry, this is a documentation problem. It has no influence except on meta data in the jpeg. Source excerpt:     jfif.setAttribute("Xdensity", Integer.toString(dpi));     jfif.setAttribute("Ydensity", Integer.toString(dpi)); So the parameter just tells what dpi your file is. If

question about dpi

2017-10-26 Thread Carl Buxbaum
Hi, I am trying to compress images in a PDF file, and thought I was doing the correct thing in this code snippet: PDImageXObject imageObject = (PDImageXObject) xObject; BufferedImage image = imageObject.getImage(); PDImageXObject newImageObject = JPEGFactory.createFromIma