xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kerstin Buchholz <leeloo5...@yahoo.de>
Subject RTF with FOP: PNG Image, Table Widths, date:date-time(), TOC Bookmarks
Date Mon, 11 Dec 2006 10:18:28 GMT
Using FOP from Trunk to generate a RTF-Output makes a lot of problems while the PDF-Ouptput
still looks very good.

1. Including an external PNG Image causes following error:
 Error while handling an external-graphic: null
java.lang.NullPointerException
        at org.apache.commons.io.IOUtils.copy(IOUtils.java:920)
        at org.apache.commons.io.IOUtils.toByteArray(IOUtils.java:215)
        at org.apache.fop.image.AbstractFopImage.loadDefaultOriginalData(AbstractFopImage.java:223)
        at org.apache.fop.image.ImageIOImage.loadOriginalData(ImageIOImage.java:217)
        at org.apache.fop.image.AbstractFopImage.load(AbstractFopImage.java:174)
        at org.apache.fop.render.rtf.RTFHandler.image(RTFHandler.java:1131)
        at org.apache.fop.render.rtf.RTFHandler.invokeDeferredEvent(RTFHandler.java:1492)
        at org.apache.fop.render.rtf.RTFHandler.recurseFONode(RTFHandler.java:1616)
        at org.apache.fop.render.rtf.RTFHandler.recurseFONode(RTFHandler.java:1687)
        at org.apache.fop.render.rtf.RTFHandler.recurseFONode(RTFHandler.java:1687)
        at org.apache.fop.render.rtf.RTFHandler.recurseFONode(RTFHandler.java:1687)
        at org.apache.fop.render.rtf.RTFHandler.recurseFONode(RTFHandler.java:1687)
        at org.apache.fop.render.rtf.RTFHandler.recurseFONode(RTFHandler.java:1687)
        at org.apache.fop.render.rtf.RTFHandler.recurseFONode(RTFHandler.java:1666)
        at org.apache.fop.render.rtf.RTFHandler.recurseFONode(RTFHandler.java:1687)
        at org.apache.fop.render.rtf.RTFHandler.recurseFONode(RTFHandler.java:1687)
        at org.apache.fop.render.rtf.RTFHandler.recurseFONode(RTFHandler.java:1626)
        at org.apache.fop.render.rtf.RTFHandler.endPageSequence(RTFHandler.java:236)
        at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:148)
        at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:378)
        at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194)
        at org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:261)
        at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1399)
        at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:393)
        at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:176)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
        at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:393)
        at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:176)
        at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:393)
        at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:176)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:160)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:139)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:139)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:139)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2281)
        at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1367)
        at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:709)
        at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1284)
        at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1262)
        at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:165)
        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
        at org.apache.fop.cli.Main.startFOP(Main.java:160)
        at org.apache.fop.cli.Main.main(Main.java:191)

2. Tables in RTF are not over the hole site width. Error causes:
 table-layout="fixed" and column-width unspecified => falling back to proportional-column-width(1)
This error causes also when generating a PDF. But in PDF tables has width=100%
Setting proportional-column-width to 100, this hasn't any effect.

3. FOP 0.20.5 still knows date:date-time() but FOP 0.92beta wants to define the prefix date.

4. The Bookmarks in PDF works fine. In RTF there is a blue underlined number like e.g. N104E2
after every entry in Table of Content instead of a real TOC in which every entry is the link
to the chapter.

Errors of FOP or Errors of the Docbook-XSL??? Maybe I have to set some parameter to generate
a looking good RTF?

Best regards,
Leeloo


 		
---------------------------------
Besseren Schutz gegen Spam - jetzt bei dem neuen Yahoo! Mail .
Mime
View raw message