xmlgraphics-batik-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46825] Error while trying to convert linearGradient element in SVG
Date Fri, 03 Apr 2009 15:56:24 GMT

--- Comment #8 from Sébastien Hamel <shamel@optinf.ca>  2009-04-03 08:56:21 PST ---

I found the problem with this. I know how to work around it but there is still
a bug in the application. 

The problem was with the URI of the SVG document to transcode. As Helder told

>I'd suggest the mailing list for this
>sort of troubleshooting, as the test case runs as expected in a usual
>JSVGCanvas (Squiggle, for example).

He was right, the test case run in JSVGCanvas because JSVGCanvas does some sort
of transformation in the URI of the SVGDocument which makes it "transcodable"
by the transcoder. So, I tryed, as Helder Magalhães did to transcode a document
passing by JSVGCanvas and everything worked as supposed, document transcoded,
but as soon as I tryed the trancoding without passing by the JSVGCanvas I
always got the same error:

c:\images\c:\images\signatureVideBonne.svg (Syntaxe du nom de fichier, de
répertoire ou de volume incorrecte)

What as to be noticed here is the URI of the document:

In fact, the URI passed was "file:c:\images\signatureVideBonne.svg".

So, it's been modified. When passing by JSVGCanvas this problem does not occur
because the URI is transformed before trying to transcode, and the result in
the SVGDocument is: documentURI    "file:/C:/images/signatureVideBonne.svg"
which cause the transcoding to occur without problem.

I just changed the value of the document URI to
file:/C:/images/signatureVideBonne.svg in my transcoding without passing by
JSVGCanvas to get it done properly without errors.

Since the URI "file:c:\images\signatureVideBonne.svg" is a well formed URI the
transcoder should support it. 



Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org

View raw message