Quantcast
Channel: Adobe Community : Popular Discussions - PDF Language and Specifications
Viewing all articles
Browse latest Browse all 46145

JBIG2 Object Stream - Extract with file header?

$
0
0

Hello,

 

I'm attempting to extract JBIG2 images only from a PDF. The only problem is that the JBIG2 images are raw data streams without a header, and so I can't just save it into a .jb2 file, as no application will recognize it.

 

It looks like this:

<</Subtype/Image/Width 1740/Height 3002/ColorSpace/DeviceGray/BitsPerComponent 1/Decode[1 0]/Length 12268/Filter/JBIG2Decode>>

stream

(DATA)

endstream

etc.

 

I can easily extract the data, but how can I repair the header?

 

Thank you.


Viewing all articles
Browse latest Browse all 46145

Trending Articles