Hello batik developers!
First of all i must congratulate to a fantastic effort!
I´m currently working on a cocoon 2-based project, where the ui should be a tabbed-dialog styled.
My idea was to render the tabs as svg, using batik-transcoding logic found in cocoon svg2jpeg serializer.
It works as predicted, except for one litte detail, the clipping and aligning of the image rendered isn´t what i expected.
When the output jpeg is rendered a one-pixel space (background colored) appears on the top and on the left of the image.
Also clipping occurs in the bottom the image. It could of course be
What i want is being able to draw a line that is at the very bottom,left,right and top of my jpeg image.
I have tested this using adobe svg viewer plugin for Internet Explorer and the image is clipped as expected.
If have looked at the serializer in cocoon and sa it seems to me all work is done by batik´s transcoding package.
 
Is there someone who can help me sort this out, if it is bug or a rtfm error on my behalf?
Below is the svg output from my cocoon pipeline, if ran without svg serializer, attatched is the jpeg output image.
 
 
<?xml version="1.0" encoding="UTF-8"?>
    <svg viewBox="0 0 560 20" width="560" height="20">
        <g transform="translate(0,0)">
            <polyline points="0,20 0,0 100,0 120,20 0,20" style="stroke: black; stroke-width:1; fill:rgb(190,190,190)"/>
            <text style="fill:black; stroke:black; font-size:10px; font-family:Verdana;" x="8" y="14">Search</text>
        </g>
        <g transform="translate(110 ,0)">
            <polyline points="10,20 0,10 0,0 100,0 120,20 10,20" style="stroke: black; stroke-width:1; fill:rgb(190,190,190)"/>
            <text style="fill:black; stroke:black; font-size:10px; font-family:Verdana;" x="8" y="14">Test</text>
        </g>
        <g transform="translate(220 ,0)">
            <polyline points="10,20 0,10 0,0 100,0 110,10 110,20 10,20" style="stroke: black; stroke-width:1; fill:rgb(190,190,190)"/>
            <text style="fill:black; stroke:black; font-size:10px; font-family:Verdana;" x="8" y="14">Statistikuttag</text>
        </g>
        <g transform="translate(330 ,0)">
            <polyline points="0,20 0,0 100,0 120,20" style="stroke: black; stroke-width:1; fill:rgb(255,255,255)"/>
            <text style="fill:black; stroke:black; font-size:10px; font-family:Verdana;" x="8" y="14">Data</text>
        </g>
        <g transform="translate(440 ,0)">
            <polyline points="10,20 0,10 0,0 100,0 120,20 10,20" style="stroke: black; stroke-width:1; fill:rgb(190,190,190)"/>
            <text style="fill:black; stroke:black; font-size:10px; font-family:Verdana;" x="8" y="14">Register</text>
        </g>
    </svg>
 
/Per-Olof Norén
 
 
:: Per-Olof Norén
:: Spectral AB
:: Banérgatan 37
:: SE-115 22 Stockholm
:: Phone: +46 8 50633518
:: Fax: +46 8 50633510
:: Mobile: +46 70 3139937

Reply via email to