Problems wit underlines and italics.
Posted: 2019-03-22T02:36:31-07:00
Hi guys!
First, thanks in advance!
I got a few problems printing to a PDF file with imagemagick command line. Here is my command:
And these are my problems:
Problems with Italics and Underlines
I also have another problem, when I set on my SVG a font to be Italic or Underline it is not print on the PDF; I can see on SVG the propiety text-decoration with the values underline and line-through:
Can you give me some advice guys?? I'm quite desperate
First, thanks in advance!
I got a few problems printing to a PDF file with imagemagick command line. Here is my command:
Code: Select all
$command = "convert /tmp/diseno.svg -gravity northwest -density 150x150 -repage ".$repage.$offsetLeft.$offsetTop."\! /tmp/diseno.pdf";
Problems with Italics and Underlines
I also have another problem, when I set on my SVG a font to be Italic or Underline it is not print on the PDF; I can see on SVG the propiety text-decoration with the values underline and line-through:
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="1240" height="1754" viewBox="0 0 1240 1754" xml:space="preserve">
<desc>Created with Fabric.js 2.4.3</desc>
<defs>
</defs>
<g transform="matrix(1 0 0 1 657 316.3)" style="" >
<text xml:space="preserve" font-family="averia serif libre" font-size="20" font-style="normal" font-weight="normal" text-decoration="underline line-through " style="stroke: none; stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(0,0,0); fill-rule: nonzero; opacity: 1; white-space: pre;" ><tspan x="-150" y="6.28" >E</tspan><tspan x="-137.64" y="6.28" >s</tspan><tspan x="-128.89" y="6.28" >c</tspan><tspan x="-119.36" y="6.28" >r</tspan><tspan x="-110.77" y="6.28" >i</tspan><tspan x="-104.62" y="6.28" >b</tspan><tspan x="-93.38" y="6.28" >e</tspan><tspan x="-83.44" y="6.28" style="white-space: pre; "> </tspan><tspan x="-78.36" y="6.28" >e</tspan><tspan x="-68.42" y="6.28" >l</tspan><tspan x="-62.43" y="6.28" style="white-space: pre; "> </tspan><tspan x="-57.34" y="6.28" >t</tspan><tspan x="-50.1" y="6.28" >e</tspan><tspan x="-40.29" y="6.28" >x</tspan><tspan x="-29.48" y="6.28" >t</tspan><tspan x="-22.24" y="6.28" >o</tspan><tspan x="-11.36" y="6.28" style="white-space: pre; "> </tspan><tspan x="-6.27" y="6.28" >a</tspan><tspan x="4" y="6.28" >q</tspan><tspan x="15.36" y="6.28" >u</tspan><tspan x="27.13" y="6.28" >í</tspan></text>
</g>
</svg>