You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Sudeep Mulki <su...@yahoo.com> on 2001/04/13 19:22:46 UTC
Fop svg:path problem
Environment: Windows NT, FOP 0.18.1, Xerces, Xalan, Jdk 1.1.8. I have all the specified (in Fop distribution) jar files in classpath.
It is not that svg does not work at all. But if I use the 'path' command to draw a rectangle or an arc, the java program (Fop) just hangs, and I see that it hogs the CPU. But if I use 'rect', then it draws the rectangle.
Are there issues with using the path command? Please advise.
Here is the code that makes it hang:
(I have declared a namespace as follows xmlns:svg="http://www.w3.org/2000/svg" in the xsl:stylesheet element)
<fo:block-container height="20cm" width="20cm" top="2cm" left="-1cm" position="absolute">
<fo:block><fo:instream-foreign-object>
<svg:svg width="20cm" height="19.5cm">
<svg:path style="stroke:black; stroke-width:2; fill:red"
d="M 20 390 L 80 390 L 80 410 L 20 410 Z" />
</svg:svg></fo:instream-foreign-object></fo:block></fo:block-container>
Please tell me if I am doing anything wrong. Please send me mail at sudeep_mulki@yahoo.com
Thanks
Sudeep Mulki
---------------------------------
Do You Yahoo!?
Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail.
Re: Fop svg:path problem
Posted by Keiron Liddle <ke...@aftexsw.com>.
I tried your example and it worked fine. The problem could be that you are
using jdk1.1.8 and there might be a problem with Java2 specific calls.
On Fri, 13 Apr 2001 19:22:46 Sudeep Mulki wrote:
>
> Environment: Windows NT, FOP 0.18.1, Xerces, Xalan, Jdk 1.1.8. I have all
> the specified (in Fop distribution) jar files in classpath.
>
> It is not that svg does not work at all. But if I use the 'path' command
> to draw a rectangle or an arc, the java program (Fop) just hangs, and I
> see that it hogs the CPU. But if I use 'rect', then it draws the
> rectangle.
>
> Are there issues with using the path command? Please advise.
>
> Here is the code that makes it hang:
>
> (I have declared a namespace as follows
> xmlns:svg="http://www.w3.org/2000/svg" in the xsl:stylesheet element)
>
> <fo:block-container height="20cm" width="20cm" top="2cm" left="-1cm"
> position="absolute">
>
> <fo:block><fo:instream-foreign-object>
>
> <svg:svg width="20cm" height="19.5cm">
>
> <svg:path style="stroke:black; stroke-width:2; fill:red"
>
> d="M 20 390 L 80 390 L 80 410 L 20 410 Z" />
>
> </svg:svg></fo:instream-foreign-object></fo:block></fo:block-container>
>
> Please tell me if I am doing anything wrong. Please send me mail at
> sudeep_mulki@yahoo.com
>
> Thanks
>
> Sudeep Mulki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org