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.createFromImage(document, image, .7f, dpi);
        resources.put(xObjectName, newImageObject);

I can manipulate the jpeg quality, but uno matter what I set dpi to, I
always get the same size file.  Is something broken about ImageIO, or the
JPEGFactory class, that prevents this from working properly?

Thanks!

Carl Buxbaum

________________________________
DISCLAIMER:
E-mails and attachments from Bamboo Rose, LLC are confidential.
If you are not the intended recipient, please notify the sender immediately by 
replying to the e-mail, and then delete it without making copies or using it in 
any way.
No representation is made that this email or any attachments are free of 
viruses. Virus scanning is recommended and is the responsibility of the 
recipient.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org

Reply via email to