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!
September 3, 2013, 5:23pm
This forum posting describes how to get the inline image as a 24bpp RGB (no alpha) raw image data.
Q: When parsing PDF documents, we have some PDFs from which we cannot
extract images. Here is the code we are using to extract images:
pdftron.PDF.Image image = new
We have also tried imageElement.GetBitmap();
In either case, an error is not thrown when extracting the image in
this way. Why are we getting this error and what can we do to extract
A: The most likely problem is that you have encountered an 'inline-
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.