I know it’s an Image because the class name provided by someone is Image
But when you read chapter 10 of iText in Action, you discover that the Image class can produce either Image XObject, or Form XObjects.
In other words: in some cases, the Image class creates PDF syntax instead of pixels. That is: if we're talking about the Image class shipped with iTextSharp.
Your statement "I only know that serializing and deserializing objects must produce same result" won't be true in many cases. You're "abusing" the PDF format as a format for serialization!
For instance:
PNG is a format that isn't supported in the PDF spec, so when you add a PNG to a PDF, iText converts it into a bitmap that is compressed with the FlateDecode filter. When you extract the image, you'll have a bitmap that needs to be converted to a PDF.
WMP is a format that isn't supported in the PDF spec, so when you add a WMF to a PDF, iText converts it into PDF syntax. When you try finding the image into the PDF, you won't find it, because it has become a Form XObject, not an Image XObject.
Now suppose you're right. Suppose you have the barcode stored in the PDF as an Image XObject, then what are you doing GetStreamBytesRaw? Are you using the PdfImageObject class? http://api.itextpdf.com/itext/com/itextpdf/text/pdf/parser/PdfImageObject.html
Your question needs much more clarification. Right now, there's no reason to believe that your QR Code is stored into the PDF as an image.
It could be, but it may as well not be. I think you jumped into a pool named PDF thinking you could swim. Maybe you should take first things first and examine what it is you're exactly doing. Once you know, you'll be able to phrase your question in a way we can answer it. Because now, many things you claim don't make sense to us (as I hope you've understood based on my examples).
Finally: you have a QR Code image with 24 bits per component? That must be a really fancy multi-color QR Code.
------------------------------------------------------------------------------ Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with <2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php