prince seems to ignore the width and height of the outermost svg element and tries to perform some sort of auto-scaling to the whole svg file which seems to be a bit broken.
Elements that extend beyond the edge of the canvas are not clipped, prince just extends the canvas to include them. Not only is this incorrect behaviour but prince alsio gets it wrong as it seems to ignore the stroke width in bounding box calculation.
Any idea when a new beta will be available and if it fixes these SVG issues?
Here is a file showing the problem, changing the height of the first rect element will demonstrate the bug:
(angle brackets changed to square brackets because forum stripped all the xml)
Elements that extend beyond the edge of the canvas are not clipped, prince just extends the canvas to include them. Not only is this incorrect behaviour but prince alsio gets it wrong as it seems to ignore the stroke width in bounding box calculation.
Any idea when a new beta will be available and if it fixes these SVG issues?
Here is a file showing the problem, changing the height of the first rect element will demonstrate the bug:
(angle brackets changed to square brackets because forum stripped all the xml)
[?xml version="1.0" encoding="UTF-8" standalone="no"?]
[svg
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.0"
width="597.61432"
height="420.47144"
id="svg2"]
[rect
width="800.71429"
height="800.57144"
x="42.857143"
y="123.79076"
style="fill:#008bff;stroke:#ff0000;stroke-width:51.90000153;stroke-linecap:round;stroke-linejoin:round"
id="rect2160" /]
[rect
width="172.55374"
height="112.89952"
x="-221.54988"
y="379.3512"
transform="matrix(0.8457978,-0.5335037,0.8871832,0.4614173,0,0)"
style="stroke:#00dd00;stroke-width:13.14568424;stroke-linecap:round;stroke-linejoin:round;"
id="rect2162" /]
[/svg]