Hi,

I am generating SVG files from a totally non graphical service. The attached
SVG file makes use of text on path elements.  When I programmatically
generate the attached SVG file and try setting it on the SVG Canvas I get
the following exception on the error dialog:

-------------------------------------------
org.apache.batik.bridge.BridgeException
SVG Error null:-1
An I/O error occured while processing the URI '' specified on the element
<textPath>      at
org.apache.batik.bridge.BridgeContext.getReferencedElement(Unknown Source)
at org.apache.batik.bridge.SVGTextPathElementBridge.createTextPath(Unknown
Source) at
org.apache.batik.bridge.SVGTextElementBridge.fillAttributedStringBuffer(Unkn
own Source)     at
org.apache.batik.bridge.SVGTextElementBridge.buildAttributedString(Unknown
Source) at
org.apache.batik.bridge.SVGTextElementBridge.buildGraphicsNode(Unknown
Source) at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown
Source) at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)     at
org.apache.batik.swing.svg.GVTTreeBuilder.run(Unknown Source)
-------------------------------------------

If I save the same generated file to the disk and try setting it to the
canvas using the setURI() method, the file is displayed properly.

Does anybody know why do the error occur with setSVGDocument() method and
not with the setURI() method? I am using Batik 1.5b4b version.

Thanks,
Geeta Shukla
India

<<attachment: t.svg>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to