Hi Kevin,

On Wed, Mar 7, 2012 at 10:14 PM, Kevin Day <[email protected]> wrote:
> 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.

Sorry, I think I may not have explained well enough again...

According to the 5.1.3 changelog:

http://itextpdf.com/history/?branch=51&node=513

<quote>
Parsing PDF for images: add jbig2 streams to pass through
</quote>

Maybe I'm misinterpreting/reading to much into that, but to me that
means jbig2 streams should be ignored, since parsing **isn't** fully
supported yet. I understand that part - no problem :)

But even if you try and catch the Exception, there's no way to stop
the stream from being written. Or very possibly, I'm not smart enough
to figure out how to ignore the jbig2 content :( In other words, don't
have a need to process jbig2, I'm just trying to understand the
correct/reccomended process.of dealing with parsing images in general.

Thanks for the great work on all the parsers.

------------------------------------------------------------------------------
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

Reply via email to