Return-Path: Delivered-To: apmail-forrest-user-archive@www.apache.org Received: (qmail 62712 invoked from network); 5 Aug 2005 00:20:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Aug 2005 00:20:26 -0000 Received: (qmail 58259 invoked by uid 500); 5 Aug 2005 00:20:25 -0000 Delivered-To: apmail-forrest-user-archive@forrest.apache.org Received: (qmail 58229 invoked by uid 500); 5 Aug 2005 00:20:24 -0000 Mailing-List: contact user-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@forrest.apache.org List-Id: Delivered-To: mailing list user@forrest.apache.org Received: (qmail 58215 invoked by uid 99); 5 Aug 2005 00:20:24 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2005 17:20:24 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [65.77.211.84] (HELO www2.kc.aoindustries.com) (65.77.211.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2005 17:20:15 -0700 Received: from fo2.kc.aoindustries.com (www2.kc.aoindustries.com [65.77.211.84]) by www2.kc.aoindustries.com (8.13.1/8.13.1) with ESMTP id j750KM4J020471 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 4 Aug 2005 19:20:23 -0500 Received: from localhost (localhost [[UNIX: localhost]]) by fo2.kc.aoindustries.com (8.13.1/8.13.1/Submit) id j750KMDE020427 for user@forrest.apache.org; Thu, 4 Aug 2005 19:20:22 -0500 X-Authentication-Warning: fo2.kc.aoindustries.com: indexgeo set sender to crossley@apache.org using -f Date: Fri, 5 Aug 2005 10:19:59 +1000 From: David Crossley To: user@forrest.apache.org Subject: Re: ugly tables in PDF files Message-ID: <20050805001959.GB3576@igg.indexgeo.com.au> References: <1123173782.4777.32.camel@localhost.localdomain> <42F24641.1080209@ece.utk.edu> <42F293B0.20004@apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42F293B0.20004@apache.org> User-Agent: Mutt/1.4i X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Ross Gardler wrote: > Neil Troy wrote: > >vadim wrote: > > > >>Do you know what is the reason to generate tables in PDF files of fixed > >>width and fixed (probably hardcoded) column width? Tables look really > >>ugly! Do you know if I can adjust something somewhere to get tables in > >>PDF files to look better? > > FOP (or FO rendering engine) does not support tables that auto size. see > http://xml.apache.org/fop/compliance.html#fo-object-table > > >I needed to fix some tables quick. > > Professional patches welcome ;-) > > You could count the chars in a all the cells then allocate the space > accordingly. This would work better but would have problems with tables > that involved images. > > See the files in FORREST_HOME/main/skins/common/xslt/fo/ We have not done very much work to enhance our use of Apache FOP to transform the docs to PDF. Our stylesheets are just a beginning. Someone would need to explore the many powers of FOP and then enhance our xslt/fo/*.xsl Also people could go to help the Apache FOP community to find ways to deal with such issues. http://xml.apache.org/fop/ Anyway please join us on the Forrest dev mailing list if you wnat to purue this beyond the user level. David