xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas E Deweese <thomas.dewe...@kodak.com>
Subject RE: Batik Extension/FOP problem
Date Fri, 07 Mar 2003 13:57:39 GMT
>>>>> "SG" == Swapan Golla <sgolla@yahoo.com> writes:

SG> I am trying to use batik extensions through FOP. I added
SG> BatikElementMapping and BatikObj objects into my FOP src and then
SG> registered them in the driver class but I am still getting some
SG> exceptions. Can anybody help me out ? 

    I don't know, The error you are getting is indicative of passing a
non Batik DOM node into Batik.  Is it possible that you are
mis-mapping the elements from FOP?  the batik:flowText element needs
to become a bati.extension.svg.FlowTextElement the others need to be
mapped likewise.  Just mapping them to generic elements won't work.

SG> I am trying to embed the flowText.svg ( provided by batik
SG> distribution ) into a simple fo document and then trying to
SG> convert into a pdf.

SG> Swapan.

SG> [ERROR] svg graphic could not be built: null
SG> java.lang.ClassCastException at
SG> org.apache.batik.bridge.CSSUtilities.getComputedStyle(CSSUtilities.java:96)
SG> at
SG> org.apache.batik.bridge.CSSUtilities.convertDisplay(CSSUtilities.java:509)
SG> at
SG> org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:176)
SG> at
SG> org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:148)
SG> at
SG> org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:188)
SG> at
SG> org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:148)
SG> at org.apache.batik.bridge.GVTBuilder.build(GVTBuilder.java:76) at
SG> org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(PDFRenderer.java:513)
SG> at
SG> org.apache.fop.render.pdf.PDFRenderer.renderSVGArea(PDFRenderer.java:472)
SG> at org.apache.fop.svg.SVGArea.render(SVGArea.java:58) at
SG> org.apache.fop.render.pdf.PDFRenderer.renderForeignObjectArea(PDFRenderer.java:456)
SG> at
SG> org.apache.fop.layout.inline.ForeignObjectArea.render(ForeignObjectArea.java:46)
SG> at
SG> org.apache.fop.render.AbstractRenderer.renderAreaContainer(AbstractRenderer.java:408)
SG> at org.apache.fop.layout.ColumnArea.render(ColumnArea.java:29) at
SG> org.apache.fop.render.AbstractRenderer.renderSpanArea(AbstractRenderer.java:57).....................

SG> __________________________________________________ Do you Yahoo!?
SG> Yahoo! Tax Center - forms, calculators, tips, more
SG> http://taxes.yahoo.com/

SG> ---------------------------------------------------------------------
SG> To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org For
SG> additional commands, e-mail: batik-dev-help@xml.apache.org

To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org

View raw message