Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 2622 invoked by uid 500); 12 May 2003 08:46:46 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 2609 invoked from network); 12 May 2003 08:46:46 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 12 May 2003 08:46:46 -0000 Received: (qmail 24953 invoked by uid 50); 12 May 2003 08:49:03 -0000 Date: 12 May 2003 08:49:02 -0000 Message-ID: <20030512084902.24952.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: cocoon-dev@xml.apache.org Cc: Subject: DO NOT REPLY [Bug 19842] New: - iText Serializer not working X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19842 iText Serializer not working Summary: iText Serializer not working Product: Cocoon 2 Version: 2.1M1 Platform: PC OS/Version: Linux Status: NEW Severity: Blocker Priority: Other Component: general components AssignedTo: cocoon-dev@xml.apache.org ReportedBy: michael.enke@wincor-nixdorf.com In my actual project I found that Apache FOP is not suitable for the requirements I have to fullfill. I can not generate huge documents, I can not create documents with Asian Fonts from Adobe so I was looking on itext. With itext I can do both. So I was looking into itext in Cocoon: The itext serializer as it is now can not be used. I only get the example page one times generated. If I reload, I get the page from the cache. But if I change hello.xml or page2itext.xsl I get com.lowagie.text.DocumentException: The document has been closed. You can't add any Elements The reason is: For every iText document you need to create a new Document. But with current itext serializer there is only one time a Document created, at configure. This is wrong. The new Document() must go into setOutputStream (or startDocument?). There is also the need for open and close the itext document. I attach a patch how this is possible. But for this a newer version for itext is required. The actual version is 0.99. iText itself has some support for xml but not all is configurable with xml. It is a java library and needs e.g. for landscape output a method call. That means: We can only output in portrait mode. On my system I added a second serializer for landscape. I add the file but should also be added in sitemap. I will work on itext source to get all info through xml.