jbig2 requires special decoders that aren't part of iText. At some point, I intend to make the decoders extensible (so folks can register their own decoders, even if iText doesn't provide it out of the box). At this stage, the stream bytes that PdfImageObject returns are valid jbig2 content (not complete though, b/c JBig2 decoders have to also handle the 'globals' data - see JBIG2GLOBALS, which is stored in a separate stream in the PDF).
Long and short, the simple extraction you are trying to do isn't going to work with Jbig2. You'll need to configure a jbig2 decoder with the globals, then use PdfImageObject.getImageAsBytes() to get the raw bytes and run them through the decoder. -- View this message in context: http://itext-general.2136553.n4.nabble.com/5-2-0-0-Image-extraction-still-not-passing-through-for-jbig2-images-tp4454504p4454678.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ iText-questions mailing list [email protected] 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
