cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pier Fumagalli (JIRA)" <j...@apache.org>
Subject [jira] Updated: (COCOON-677) iText Serializer not working
Date Tue, 25 Oct 2005 13:22:05 GMT
     [ http://issues.apache.org/jira/browse/COCOON-677?page=all ]

Pier Fumagalli updated COCOON-677:
----------------------------------

    Assign To: Torsten Curdt  (was: Torsten Curdt)

> iText Serializer not working
> ----------------------------
>
>          Key: COCOON-677
>          URL: http://issues.apache.org/jira/browse/COCOON-677
>      Project: Cocoon
>         Type: Bug
>   Components: - Components: Avalon
>     Versions: 2.1 Milestone 1
>  Environment: Operating System: Linux
> Platform: PC
>     Reporter: Michael Enke
>     Assignee: Torsten Curdt
>  Attachments: iTextSerializer.java.diff-u, iTextSerializerLandscape.java
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message