How can I compress and add an image with the standard version of the Android SDK?

19 views
Skip to first unread message

Aaron

unread,
Jan 30, 2015, 2:08:58 PM1/30/15
to pdfne...@googlegroups.com
Q:

I want to add an image to a page using the standard version of the Android SDK.  The image is uncompressed, and the PDF document size increases a lot.  The full version of the SDK allows you to compress the image data, and thus the PDF document doesn't increase very much.  How can I get the same functionality with the standard Android SDK?

A:


One workaround would be to compress the image data with Flate (java.util.zip.Deflater), then pass the compressed data into Image.Create:






Reply all
Reply to author
Forward
0 new messages