JBIG2 PDF stream decompression
"Bratislav Stojanovic" <[email protected]> Tue, 29 Jun 2010 17:28:17 -0400
| Newsgroups | gmane.comp.printing.ghostscript.jbig2dec.devel |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. ------=_NextPart_000_0063_01CB17B0.75F95AB0 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0064_01CB17B0.75F95AB0" ------=_NextPart_001_0064_01CB17B0.75F95AB0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I was wondering, is there a change I can decompress a JBIG2 stream taken = from some PDF file with this code? JBIG2 streams inside PDF don't have a file header = (as far as I know), and it seems that there are some segment headers inside, but I'm not very = familiar with the JBIG2 file format. In the attachment you will find one small JBIG2 stream taken from a PDF = file. I've tried to add the file header ( 8 + 1 + 4 bytes ) and to decompress, but no luck. Nothing = will be generated on the stdout and there are no output files??? Regards, John ------=_NextPart_001_0064_01CB17B0.75F95AB0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3Dtext/html;charset=3Diso-8859-1 = http-equiv=3DContent-Type> <META name=3DGENERATOR content=3D"MSHTML 8.00.6001.18928"></HEAD> <BODY style=3D"PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: = 15px"=20 id=3DMailContainerBody leftMargin=3D0 topMargin=3D0 = CanvasTabStop=3D"true"=20 name=3D"Compose message area"> <DIV><FONT face=3DCalibri>Hello,</FONT></DIV> <DIV><FONT face=3DCalibri></FONT> </DIV> <DIV><FONT face=3DCalibri>I was wondering, is there a change I can = decompress a=20 JBIG2 stream taken from some PDF</FONT></DIV> <DIV><FONT face=3DCalibri>file with this code? JBIG2 streams inside PDF = don't have=20 a file header (as far as I know), and</FONT></DIV> <DIV><FONT face=3DCalibri>it seems that there are some segment headers = inside, but=20 I'm not</FONT><FONT face=3DCalibri> very familiar with the = JBIG2</FONT></DIV> <DIV><FONT face=3DCalibri>file </FONT><FONT = face=3DCalibri>format.</FONT></DIV> <DIV><FONT face=3DCalibri></FONT> </DIV> <DIV><FONT face=3DCalibri>In the attachment you will find one small = JBIG2 stream=20 taken from a PDF file. I've tried to add the</FONT></DIV> <DIV><FONT face=3DCalibri>file header ( 8 + 1 + 4 bytes ) and to = decompress,=20 but no luck. Nothing will be generated on the</FONT></DIV> <DIV><FONT face=3DCalibri>stdout and there are no output = files???</FONT></DIV> <DIV><FONT face=3DCalibri></FONT> </DIV> <DIV><FONT face=3DCalibri>Regards,</FONT></DIV> <DIV><FONT face=3DCalibri>John</FONT></DIV></BODY></HTML> ------=_NextPart_001_0064_01CB17B0.75F95AB0-- ------=_NextPart_000_0063_01CB17B0.75F95AB0 Content-Type: application/octet-stream; name="1215new.jb2" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="1215new.jb2" l0pCMg0KGgoBAAAAAQAAAAAwAAEAAAATAAATOAAAAGAAAAAAAAAAAEAAAAAAAAEmAAEAAAA9AAAT OAAAAGAAAAAAAAAAAAIAA//9/wL+/v6ro+1fuv94DcQgrqXvJ9+dPLdrtJZCD+RFPiA5/yHw/3// rA== ------=_NextPart_000_0063_01CB17B0.75F95AB0 Content-Type: application/octet-stream; name="1215new.stream" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="1215new.stream" AAAAADAAAQAAABMAABM4AAAAYAAAAAAAAAAAQAAAAAAAASYAAQAAAD0AABM4AAAAYAAAAAAAAAAA AgAD//3/Av7+/quj7V+6/3gNxCCupe8n3508t2u0lkIP5EU+IDn/IfD/f/+s ------=_NextPart_000_0063_01CB17B0.75F95AB0 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ jbig2-dev mailing list [email protected] http://ghostscript.com/cgi-bin/mailman/listinfo/jbig2-dev ------=_NextPart_000_0063_01CB17B0.75F95AB0--