PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com _____________________________________________________________
Hi Gordon, Just a quick analysis of what you have here, make sure that your page and stream are set up properly. 1) The /Filter /FlateDecode should be in the stream dictionary, not the page dictionary. The page should just reference your stream with the /Contents entry. 2) Make sure that the syntax of your stream is correct, PDF interpreters are very particular about this. Your page and content stream should have at least the following entries (check the reference for these and more entries) << /Type /Page /Contents 10 0 R >> 10 0 obj << /Length 11 0 R /Filter /FlateDecode >> % stream keyword is to be followed immediately by end of line stream ... Compressed stream data is here endstream endobj 11 0 obj ... Length of the compressed stream data endobj Jon Anderson Bengt Computer Graphics LLC http://www.bengtcg.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Campbell Sent: Thursday, December 18, 2003 11:41 AM To: [EMAIL PROTECTED] Subject: RE: [PDFdev] zlib compression PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com _____________________________________________________________ Thanks Jon, That's what I was hoping for. Now my main concern .... I had a simple uncompressed PDF that basically stated 'Hello World" in my PDF document. The actual stream content is: BT /F1 10 Tf 1 0 0 1 10 742 Tm (Hello World) Tj ET I've also included the "/Filter / FlateDecode" option into the Page dictionary. When I try to open my PDF document I get the following error messages: "There was an error processing a page. Too Few operands." "An unrecognized token 'ERT' was found." I did a search of the archives and found a post that stated there may be an issue with how the streams and endstreams are used in conjunction with compression. I've tried all manner of linefeed combinations but I keep getting the same errors. Does anyone have any ideas where to start looking? Thanks, Gordon -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jon Anderson Sent: Thursday, December 18, 2003 11:09 AM To: [EMAIL PROTECTED] Subject: RE: [PDFdev] zlib compression PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com _____________________________________________________________ The 'compress' function is just a convenience function that wraps the 'deflate' process (deflateInit, deflate and deflateEnd). If your data is in a form that can be passed to the compress function, you might as well use it. Jon Anderson Bengt Computer Graphics LLC http://www.bengtcg.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Campbell Sent: Thursday, December 18, 2003 8:00 AM To: [EMAIL PROTECTED] Subject: [PDFdev] zlib compression PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com _____________________________________________________________ Morning, When using zlib to try and compress the PDF streams should I be using the 'compress' function or the 'deflate' function? Thanks, Gordon -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Thom Parker Sent: Friday, December 12, 2003 7:29 PM To: [EMAIL PROTECTED] Subject: RE: [PDFdev] Extracting FlateEncoded data PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com _____________________________________________________________ Try www.windjack.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fernando Lagos Sent: Friday, December 12, 2003 5:20 PM To: [EMAIL PROTECTED] Subject: RE: [PDFdev] Extracting FlateEncoded data PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com _____________________________________________________________ Try PdfTron CosEdit. www.pdftron.com There is a demo version. _______________________________ Fernando Lagos cqsSistemas [EMAIL PROTECTED] http://www.cqssistemas.com.ar _______________________________ >From: "Campbell, Christopher" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: [PDFdev] Extracting FlateEncoded data >Date: Fri, 12 Dec 2003 17:19:07 -0500 > >I have a need to expand data streams that are FlateEncoded in a PDF (I'm >trying to verify content of PDF's created dynamically by a third-party >package). I've downloaded the ZLIB.dll and I'm using it. I can get it to >compress and de-compress strings that I enter into a simple interface but >if >I try to cut and paste a stream out of a PDF file I don't get the result >that I'm looking for (generally I get nothing or garbage). I'm guessing >that either there's header information in the stream data that I need to >pull out before I try to inflate the data and/or that I'm not handling >carriage-return line-feeds properly. > >Can someone point me in the right direction? > > >Christopher K. Campbell >Product Development Manager >eSolutions Unit >Ancor Information Management >http://www.ancorinfo.com <http://www.ancorinfo.com> >mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > _________________________________________________________________ MSN Amor: busca tu � naranja http://latam.msn.com/amor/ To change your subscription: http://www.pdfzone.com/discussions/lists-pdfdev.html To change your subscription: http://www.pdfzone.com/discussions/lists-pdfdev.html To change your subscription: http://www.pdfzone.com/discussions/lists-pdfdev.html To change your subscription: http://www.pdfzone.com/discussions/lists-pdfdev.html To change your subscription: http://www.pdfzone.com/discussions/lists-pdfdev.html To change your subscription: http://www.pdfzone.com/discussions/lists-pdfdev.html
