Hello,

I have some problems, while generating a pdf with fop. I would like to
convert some svg to pdf. The svg shows a rect, some text and a piechart. Every
time I converted it to pdf the piechart was displaced. All other elements are on
the correct place. Does anybody know a solution for my problem? 

Here is the fo-code: 

<?xml version="1.0" encoding="iso-8859-1"?>

    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";
xmlns:svg="http://www.w3.org/2000/svg"; 
xmlns:batik="http://xml.apache.org/batik/ext";>
      <fo:layout-master-set>
        <fo:simple-page-master page-width="210mm" page-height="297mm"
master-name="simpleA4">
          <fo:region-body/>
        </fo:simple-page-master>
      </fo:layout-master-set>
      <fo:page-sequence master-reference="simpleA4">
        <fo:flow flow-name="xsl-region-body">        
                
    
<fo:instream-foreign-object height="297mm" width="210mm">
<svg xmlns="http://www.w3.org/2000/svg"; height="297mm" width="210mm">   
                                        
                                                <g 
xmlns:xlink="http://www.w3.org/1999/xlink"; id="headline">
            <text fill="black" x="22mm" font-size="16pt" y="32mm"
font-family="Arial">
                Title
            </text>
        </g>                    
                                                <g 
xmlns:xlink="http://www.w3.org/1999/xlink"; id="title">
            <rect fill="rgb(0,0,0)" width="170mm" x="20mm" height="12mm"
y="35mm"/>
            <text fill="white" x="22mm" font-size="16pt" y="43mm"
font-family="Arial">
                Test 123
            </text>
        </g>
        
                                                <g 
xmlns:xlink="http://www.w3.org/1999/xlink"; id="piechart">
            <g font-size="11.0pt" fill="#faa">
                <path d="M400,550L400,430A120 120 0 0 1 470.53,452.92z"/>
                <line y2="425.4116" x1="437.08203" x2="440.48123"
y1="435.87323"/>
                <text x="440.48123" fill="black" y="429.07825"
stroke="none">
                z
                </text>
            </g>
            <g font-size="11.0pt" fill="#afa">
                <path d="M400,550L470.53,452.92A120 120 0 0 1
514.13,587.08z"/>
                <line y2="509.51877" x1="514.1268" x2="524.5884"
y1="512.91797"/>
                <text x="524.5884" fill="black" y="513.1854" stroke="none">
                x
                </text>
            </g>
            <g font-size="11.0pt" fill="#aaf">
                <path d="M400,550L514.13,587.08A120 120 0 1 1 400,430z"/>
                <line y2="626.9999" x1="302.91797" x2="294.01877"
y1="620.53424"/>
                <text x="294.01877" fill="black" y="630.66656"
text-anchor="end" stroke="none">
                y
                </text>
            </g>
        </g>
</svg>
</fo:instream-foreign-object>
        
        </fo:flow>
      </fo:page-sequence>
    </fo:root>

THX

-- 
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz


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

Reply via email to