compress(), zlib and FlateDecode filter in PDF stream

2005-04-17 Thread jbv
Hi there, Has anybody succeeded in using the compress() function on PDF data stream using the FlateDecode filter ? According to both docs (PDF ref and Rev), both compress() and FlateDecode are built around the public domain zlib library, but I didn't manage to include compressed data in a pdf

Re: compress(), zlib and FlateDecode filter in PDF stream

2005-04-17 Thread Dar Scott
On Apr 17, 2005, at 10:20 AM, jbv wrote: Has anybody succeeded in using the compress() function on PDF data stream using the FlateDecode filter ? According to both docs (PDF ref and Rev), both compress() and FlateDecode are built around the public domain zlib library, but I didn't manage to

Re: compress(), zlib and FlateDecode filter in PDF stream

2005-04-17 Thread jbv
Dar, The Revolution compress() creates gzip which has a wrapper around the zlib format. You can dig into the binary and do primitive zlib compression. And decompression IF you know the length of the result. Thanks for the reply. Could you please elaborate a bit on this, especially

Re: compress(), zlib and FlateDecode filter in PDF stream

2005-04-17 Thread Dar Scott
On Apr 17, 2005, at 2:53 PM, jbv wrote: The Revolution compress() creates gzip which has a wrapper around the zlib format. You can dig into the binary and do primitive zlib compression. And decompression IF you know the length of the result. Thanks for the reply. Could you please elaborate a bit

Re: compress(), zlib and FlateDecode filter in PDF stream

2005-04-17 Thread Dar Scott
On Apr 17, 2005, at 4:00 PM, Dar Scott wrote: If those deflate blocks are what you want, then this should do it. If you need zlib, then you need to wrap that. Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ A Sponsor