How can I save inline image to an image file?


First of all, thanks for your help! I already checked everything on google and pdfnet site but I did not find any solution to save inline image object to an image file in Java. Do you have any simple java example how I can save inline image to a file?

Thanks again and have a nice day!

This forum posting describes how to get the inline image as a 24bpp RGB (no alpha) raw image data.

From here you need to decide what output format you want, PNG, JPG, etc. Then converting from rgb to your desired image format is more of a java api question, then a pdfnet question.

Note, there is also now a Image2RGBA class, if you want 32bpp.

Best regards,