I'm trying to use Inkscape to print an x/y ruler. A Perl script generates some SVG data which is fed to Inkscape for conversion to PostScript.
The problem is that my printer is slightly off vertically. What ought to be 220 mm comes out about 0.35 mm too short.
I've tried to compensate by changing the "height" of the <svg> element but it appears to translate the graphics instead of scaling them. Likewise if I change the "viewBox".
The SVG is as follows :
<svg width="210mm" height="297mm" viewBox="0 0 210 297" style=" fill:none; fill-opacity:0.75000000; fill-rule:evenodd; stroke:#000000; stroke-width:0.05; stroke-linecap:butt; stroke-linejoin:miter; stroke-opacity:1.0000000; "> <path d=" M 14,13 l 0,-5 # Horizontal rule M 15,13 l 0,-2.5 M 16,13 l 0,-2.5 ... M 196,13 l 0,-2.5 M 197,13 l 0,-2.5 M 198,13 l 0,-2.5 M 14,13 l -4.5,0 # Vertical rule M 14,14 l -2.5,0 M 14,15 l -2.5,0 ... M 14,260 l -2.5,0 M 14,261 l -2.5,0 M 14,262 l -2.5,0 "/> # Horizontal rule <text fill="black" y="7" font-size="3" style="text-anchor:middle"> <tspan x="14" >0</tspan> <tspan x="24" >1</tspan> <tspan x="34" >2</tspan> ... <tspan x="174" >16</tspan> <tspan x="184" >17</tspan> <tspan x="194" >18</tspan> </text> # Vertical rule <text fill="black" x="8.5" font-size="3" style="text-anchor:end" rotate="90"> <tspan y="14" >0</tspan> <tspan y="24" >1</tspan> <tspan y="34" >2</tspan> ... <tspan y="234" >22</tspan> <tspan y="244" >23</tspan> <tspan y="254" >24</tspan> </text> </svg>
Any hints ? Thanks in advance !
participants (1)
-
Andre Majorel