cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19842] New: - iText Serializer not working
Date Mon, 12 May 2003 08:49:02 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19842>.
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.

Mime
View raw message