Hi,
I use FOP 0.20.5rc3a to convert SVG files to PDF. But I have a problem whith the units in millimeters. If I use the 'stroke' attribute in the tags <line> and <rect>, the strokes of this shapes are not at the good place in the PDF document. More, the size of the PDF is not correct (66.3mm x 26.5mm instead of 50mm x 20mm).
Where is the problem ?
Here a SVG code :
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="50mm" height="20mm" viewBox="0 0 50 20" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g>
<rect x="7" y="9" width="2" height="2" style= "fill:#FF0000;" />
<rect x="41" y="9" width="2" height="2" style= "fill:#FF0000;" />
<line x1="10" y1="10" x2="40" y2="10" style=" stroke:#0000FF; stroke-width:0.5;" />
</g>
</svg>
And see the results in attachment (with pixel unit and mm unit).
Thanks for your help.
Christophe
test_pixels.pdf
Description: Adobe PDF document
test_mm.pdf
Description: Adobe PDF document--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
