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 ca...@brzrs2.bau.tu-dresden.de on 2002/11/19 18:35:20 UTC
rendering SVG Graphic exported from staroffice 6
Hello,
I tried to include some svg graphics with
<fo:external-graphic src="circle.svg"/>
If I use Mayura Draw for drawing, there are no problems, but if I
make a simple drawing with staroffice 6.0 and export it to SVG I have
no success. I can view this file in Adobe SVG Viewer, I can transcode
it with batik 1.5 to png, but I have no success with this file in
fop.
The Staroffice files differ from the mayura files in there coordinate
system, maybe this is a problem:
-----------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg width="46mm" height="38mm" viewBox="0 0 4600 3800">
<g style="stroke:rgb(0,0,0);fill:none">
<polyline points="2383,3252 2011,3202 1678,3061 1395,2842 1176,2559
1035,2226 986,1855 1035,1483 1176,1150 1395,867 1678,648 2011,507
2383,458 2754,507 3087,648 3370,867 3589,1150 3730,1483 3780,1855
3730,2226 3589,2559 3370,2842 3087,3061 2754,3202 2383,3252"
style="fill:none"/>
</g>
</svg>
-----------------------------------------------
Maybe somebody has a tip!
Regards, Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: rendering SVG Graphic exported from staroffice 6
Posted by Carsten Karkola <ca...@mailbox.tu-dresden.de>.
The polygons come from staroffice 6.0 export to svg, so I have to live with
them.
Are there some planes to build a new release, containing the right
implementation in cvs?
Regards, Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: rendering SVG Graphic exported from staroffice 6
Posted by Keiron Liddle <ke...@aftexsw.com>.
The problem is with the viewBox, this is not implemented properly in the
releases.
It has been implemented in cvs however.
Why don't you use a circle to draw a circle?
On Tue, 2002-11-19 at 18:35, carsten@brzrs2.bau.tu-dresden.de wrote:
> Hello,
>
> I tried to include some svg graphics with
> <fo:external-graphic src="circle.svg"/>
>
> If I use Mayura Draw for drawing, there are no problems, but if I
> make a simple drawing with staroffice 6.0 and export it to SVG I have
>
> no success. I can view this file in Adobe SVG Viewer, I can transcode
>
> it with batik 1.5 to png, but I have no success with this file in
> fop.
>
> The Staroffice files differ from the mayura files in there coordinate
>
> system, maybe this is a problem:
> -----------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
> "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
> <svg width="46mm" height="38mm" viewBox="0 0 4600 3800">
> <g style="stroke:rgb(0,0,0);fill:none">
> <polyline points="2383,3252 2011,3202 1678,3061 1395,2842 1176,2559
> 1035,2226 986,1855 1035,1483 1176,1150 1395,867 1678,648 2011,507
> 2383,458 2754,507 3087,648 3370,867 3589,1150 3730,1483 3780,1855
> 3730,2226 3589,2559 3370,2842 3087,3061 2754,3202 2383,3252"
> style="fill:none"/>
> </g>
> </svg>
> -----------------------------------------------
>
> Maybe somebody has a tip!
> Regards, Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org