Return-Path: Delivered-To: apmail-xml-fop-user-archive@www.apache.org Received: (qmail 49502 invoked from network); 9 Jul 2004 11:25:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Jul 2004 11:25:09 -0000 Received: (qmail 22192 invoked by uid 500); 9 Jul 2004 11:25:05 -0000 Delivered-To: apmail-xml-fop-user-archive@xml.apache.org Received: (qmail 22159 invoked by uid 500); 9 Jul 2004 11:25:04 -0000 Mailing-List: contact fop-user-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: fop-user@xml.apache.org Delivered-To: mailing list fop-user@xml.apache.org Received: (qmail 22143 invoked by uid 99); 9 Jul 2004 11:25:04 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [81.221.250.51] (HELO mail02.agrinet.ch) (81.221.250.51) by apache.org (qpsmtpd/0.27.1) with ESMTP; Fri, 09 Jul 2004 04:25:01 -0700 Received: from [192.168.1.33] (81.6.9.57) by mail02.agrinet.ch (7.0.024) (authenticated as dev.jeremias@greenmail.ch) id 40C10CD70032DC02 for fop-user@xml.apache.org; Fri, 9 Jul 2004 13:24:54 +0200 Date: Fri, 09 Jul 2004 13:24:54 +0200 From: Jeremias Maerki To: fop-user@xml.apache.org Subject: Re: PDFTextCompression 0.20.5 In-Reply-To: <40ED29C5.9050604@yahoo.de> References: <20040707230246.77C7.DEV.JEREMIAS@greenmail.ch> <40ED29C5.9050604@yahoo.de> Message-Id: <20040709131906.AB40.DEV.JEREMIAS@greenmail.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.07.04 [en] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I've just verified and the my configuration snippet (in userconfig.xml) does have the desired effect of not encoding normal PDF stream objects under FOP 0.20.5. stream-filter-list The clue about addDefaultFilters in PDFStream is that if you supply an empty list it doesn't add a FlateFilter. protected void addDefaultFilters() { List filters = Configuration.getListValue("stream-filter-list", Configuration.PDF); if (filters == null) { // try getting it as a String String filter = Configuration.getStringValue("stream-filter-list", Configuration.PDF); if (filter == null) { // built-in default to flate addFilter(new FlateFilter()); } else { addFilter(filter); } } else { for (int i = 0; i < filters.size(); i++) { String v = (String)filters.get(i); addFilter(v); } } } On 08.07.2004 13:02:29 J.Pietschmann wrote: > Jeremias Maerki wrote: > > That should work. Doesn't it? > > No it shouldn't. There is a flate filter hardcoded in case > the filter list is empty. The only way to get around this > is to comment out the code and recompile. I don't know how > often I got angry about this. Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org For additional commands, e-mail: fop-user-help@xml.apache.org