<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi Irina,</p>
    That solution works for now, but the pdf has to be scaled before
    printing as it's not A4 size anymore.<br>
    <br>
    It's also possible to set scaling and viewbox to the same size in
    the svg file, like this:<br>
    width="595" height="842" viewBox="0 0 595 842"<br>
    gives the same results as before this bug, but then all templates
    have to be changed.<br>
    <br>
    <span style="font-family: "Proxima
      Nova",Tahoma,Verdana,Arial,sans-serif; font-size: 14px;
      font-style: normal; font-variant-ligatures: normal;
      font-variant-caps: normal; font-weight: 400; letter-spacing:
      normal; text-align: start; text-indent: 0px; text-transform: none;
      white-space: normal; word-spacing: 0px; background-color: rgb(249,
      248, 247); text-decoration-style: initial; text-decoration-color:
      initial; display: inline ! important; float: none;">Regards,<br>
      <br>
      Henk Plessius<br>
      <br>
      <br>
    </span>
    <div class="moz-cite-prefix">On 12-12-2017 13:36, Irina Peshinskaya
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:e87092f3-314e-5534-9572-c1e64f7ccc97@sipwise.com">
      <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
      <p>Dear Henk,</p>
      <p>Thank you for the bug report.</p>
      <p>I created internal ticket <span style="font-family:
          "Proxima Nova",Tahoma,Verdana,Arial,sans-serif;
          font-size: 14px; font-style: normal; font-variant-ligatures:
          normal; font-variant-caps: normal; font-weight: 400;
          letter-spacing: normal; text-align: start; text-indent: 0px;
          text-transform: none; white-space: normal; word-spacing: 0px;
          background-color: rgb(249, 248, 247); text-decoration-style:
          initial; text-decoration-color: initial; display: inline !
          important; float: none;">#27656 and will let know here in list
          when the fix will be released.</span></p>
      <p><span style="font-family: "Proxima
          Nova",Tahoma,Verdana,Arial,sans-serif; font-size: 14px;
          font-style: normal; font-variant-ligatures: normal;
          font-variant-caps: normal; font-weight: 400; letter-spacing:
          normal; text-align: start; text-indent: 0px; text-transform:
          none; white-space: normal; word-spacing: 0px;
          background-color: rgb(249, 248, 247); text-decoration-style:
          initial; text-decoration-color: initial; display: inline !
          important; float: none;">I didn't try solution below yet, but
          possible it will solve the issue for you for now:</span></p>
      <p><span style="font-family: "Proxima
          Nova",Tahoma,Verdana,Arial,sans-serif; font-size: 14px;
          font-style: normal; font-variant-ligatures: normal;
          font-variant-caps: normal; font-weight: 400; letter-spacing:
          normal; text-align: start; text-indent: 0px; text-transform:
          none; white-space: normal; word-spacing: 0px;
          background-color: rgb(249, 248, 247); text-decoration-style:
          initial; text-decoration-color: initial; display: inline !
          important; float: none;">In the file:   </span><br>
        <span style="font-family: "Proxima
          Nova",Tahoma,Verdana,Arial,sans-serif; font-size: 14px;
          font-style: normal; font-variant-ligatures: normal;
          font-variant-caps: normal; font-weight: 400; letter-spacing:
          normal; text-align: start; text-indent: 0px; text-transform:
          none; white-space: normal; word-spacing: 0px;
          background-color: rgb(249, 248, 247); text-decoration-style:
          initial; text-decoration-color: initial; display: inline !
          important; float: none;">/usr/share/perl5/NGCP/Panel/Utils/InvoiceTemplate.pm
          <br>
        </span></p>
      <p><span style="font-family: "Proxima
          Nova",Tahoma,Verdana,Arial,sans-serif; font-size: 14px;
          font-style: normal; font-variant-ligatures: normal;
          font-variant-caps: normal; font-weight: 400; letter-spacing:
          normal; text-align: start; text-indent: 0px; text-transform:
          none; white-space: normal; word-spacing: 0px;
          background-color: rgb(249, 248, 247); text-decoration-style:
          initial; text-decoration-color: initial; display: inline !
          important; float: none;"><br>
        </span></p>
      <p><span style="font-family: "Proxima
          Nova",Tahoma,Verdana,Arial,sans-serif; font-size: 14px;
          font-style: normal; font-variant-ligatures: normal;
          font-variant-caps: normal; font-weight: 400; letter-spacing:
          normal; text-align: start; text-indent: 0px; text-transform:
          none; white-space: normal; word-spacing: 0px;
          background-color: rgb(249, 248, 247); text-decoration-style:
          initial; text-decoration-color: initial; display: inline !
          important; float: none;">root@sp1:~# grep -n "\-z"
          /usr/share/perl5/NGCP/Panel/Utils/InvoiceTemplate.pm  <br>
        </span></p>
      <p><span style="font-family: "Proxima
          Nova",Tahoma,Verdana,Arial,sans-serif; font-size: 14px;
          font-style: normal; font-variant-ligatures: normal;
          font-variant-caps: normal; font-weight: 400; letter-spacing:
          normal; text-align: start; text-indent: 0px; text-transform:
          none; white-space: normal; word-spacing: 0px;
          background-color: rgb(249, 248, 247); text-decoration-style:
          initial; text-decoration-color: initial; display: inline !
          important; float: none;">47:        #-z 0.8 , --dpi-x 72
          --dpi-y 72<br>
          48:        my @cmd_args = (qw/-a -f pdf -z 0.8/, @next_pages);<br>
        </span></p>
      <p><span style="font-family: "Proxima
          Nova",Tahoma,Verdana,Arial,sans-serif; font-size: 14px;
          font-style: normal; font-variant-ligatures: normal;
          font-variant-caps: normal; font-weight: 400; letter-spacing:
          normal; text-align: start; text-indent: 0px; text-transform:
          none; white-space: normal; word-spacing: 0px;
          background-color: rgb(249, 248, 247); text-decoration-style:
          initial; text-decoration-color: initial; display: inline !
          important; float: none;">You can try to remove -z 0.8 part and
          restart ngcp-panel after it.  <br>
        </span></p>
      <p><span style="font-family: "Proxima
          Nova",Tahoma,Verdana,Arial,sans-serif; font-size: 14px;
          font-style: normal; font-variant-ligatures: normal;
          font-variant-caps: normal; font-weight: 400; letter-spacing:
          normal; text-align: start; text-indent: 0px; text-transform:
          none; white-space: normal; word-spacing: 0px;
          background-color: rgb(249, 248, 247); text-decoration-style:
          initial; text-decoration-color: initial; display: inline !
          important; float: none;">We added this option years ago as a
          workaround for the rsvg-convert scaling bug.<br>
        </span></p>
      <p><span style="font-family: "Proxima
          Nova",Tahoma,Verdana,Arial,sans-serif; font-size: 14px;
          font-style: normal; font-variant-ligatures: normal;
          font-variant-caps: normal; font-weight: 400; letter-spacing:
          normal; text-align: start; text-indent: 0px; text-transform:
          none; white-space: normal; word-spacing: 0px;
          background-color: rgb(249, 248, 247); text-decoration-style:
          initial; text-decoration-color: initial; display: inline !
          important; float: none;"><br>
        </span></p>
      <p><span style="font-family: "Proxima
          Nova",Tahoma,Verdana,Arial,sans-serif; font-size: 14px;
          font-style: normal; font-variant-ligatures: normal;
          font-variant-caps: normal; font-weight: 400; letter-spacing:
          normal; text-align: start; text-indent: 0px; text-transform:
          none; white-space: normal; word-spacing: 0px;
          background-color: rgb(249, 248, 247); text-decoration-style:
          initial; text-decoration-color: initial; display: inline !
          important; float: none;">Best regards,</span></p>
      <p><span style="color: rgb(84, 84, 84); font-family: "Proxima
          Nova", Tahoma, Verdana, Arial, sans-serif; font-size:
          14px; font-style: normal; font-variant-ligatures: normal;
          font-variant-caps: normal; font-weight: 400; letter-spacing:
          normal; orphans: 2; text-align: start; text-indent: 0px;
          text-transform: none; white-space: normal; widows: 2;
          word-spacing: 0px; -webkit-text-stroke-width: 0px;
          background-color: rgb(249, 248, 247); text-decoration-style:
          initial; text-decoration-color: initial; display: inline
          !important; float: none;"><font color="#000000">Irina
            Peshinskaya</font><br>
        </span></p>
      <br>
      <div class="moz-cite-prefix">On 05.12.2017 16:42, Henk wrote:<br>
      </div>
      <blockquote
        cite="mid:33771d3c-94bd-3345-7ff4-d61a99b63c07@voipdigit.nl"
        type="cite">
        <meta http-equiv="content-type" content="text/html;
          charset=utf-8">
        <p>Hi all,</p>
        <p>I already mentioned this, but maybe it's better to have a
          separate report for this.</p>
        When generating invoices in the latest release, every page
        scales 80% lower then the last one, until page 25 where it
        starts at 80% again.<br>
        I think there is a bug in rsvg-convert that z-scaling is used
        repeatedly on every page. The panel-debug.log shows<br>
        <p><font size="-1"><tt>rsvg-convert -a -f pdf -z 0.8
              /tmp/_Q5YIBaFpx/1.svg /tmp/_Q5YIBaFpx/2.svg
              /tmp/_Q5YIBaFpx/3.svg /tmp/_Q5YIBaFpx/4.svg
              /tmp/_Q5YIBaFpx/5.svg <br>
            </tt></font></p>
        <p>The result pdf has page 1 scaled to 80%; page 2  64% and page
          25 to around 0.4%</p>
        <p>Regards,</p>
        <p>Henk Plessius<br>
        </p>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
Spce-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Spce-user@lists.sipwise.com" moz-do-not-send="true">Spce-user@lists.sipwise.com</a>
<a class="moz-txt-link-freetext" href="https://lists.sipwise.com/listinfo/spce-user" moz-do-not-send="true">https://lists.sipwise.com/listinfo/spce-user</a>
</pre>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </body>
</html>