You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Christophe Le Bot <cl...@agencecap.net> on 2003/07/24 17:48:03 UTC

Pb with unit and in the PDF

Hi,

I use Batik (1.5 final with FOP 0.20.5 rc3a) to convert SVG files to PDF 
files. If I add the unit in the SVG tag (ie, mm), the size of my 
rectangles is wrong in the PDF file. If there is no unit, the PDF file 
is perfect. I have only this problem whith the tag <rect>.

Have you got an idea ? Is it a bug of Batik or FOP ?

Here my 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="96mm" height="60mm" viewBox="0 0 96 60" version="1.1" 
xmlns="http://www.w3.org/2000/svg">
<g id="zp">
  <rect x="0" y="0" width="96" height="60" style=" fill:#FFFFFF;"/>
  <rect x="2" y="7.3" width="92" height="1.2" style=" fill:#000000;"/>
  <rect x="0.05" y="8.5" width="95.9" height="50.3" style=" fill:none; 
stroke:#000000; stroke-width:0.1;"/>
  <rect x="0" y="58.8" width="96" height="1.2" style=" fill:#000000;"/>
</g>
</svg>

Thanks.

Chris.


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org