New Forum | Previous | Next | (P-PDF) Developers
Topic: LZWDecode / Flate Decode
Conf: (P-PDF) Developers, Msg: 54605
From: twibbler
Date: 5/29/2002 05:07 PM
Hi All
After the succesful completion of the PDF writer for JPEG images.
I thought (seeing I was bored) I would try and include PNG files.
I have the image included within the stream and all the xrefs are correct etc.
The error Read less data than expected is appearing.
Have looked at the adobe manual and it says use the LZWDecode with a Predictor > 10.
This is the image object (excluding the image)
7 0 obj
<<
/Type /XObject
/Subtype /Image
/Name /I1
/Width 600
/Height 350
/BitsPerComponent 8
/ColorSpace /DeviceCMYK
/Filter /FlateDecode
/Length 4332
>>
stream
image data here
endstream
endobj.
Wonder if anybody has any idea. (Can post the PDF if needed).
Thank you