[Spce-user] Invoices have wrong scaling
Henk
henk at voipdigit.nl
Tue Dec 12 10:11:53 EST 2017
Hi Irina,
That solution works for now, but the pdf has to be scaled before
printing as it's not A4 size anymore.
It's also possible to set scaling and viewbox to the same size in the
svg file, like this:
width="595" height="842" viewBox="0 0 595 842"
gives the same results as before this bug, but then all templates have
to be changed.
Regards,
Henk Plessius
On 12-12-2017 13:36, Irina Peshinskaya wrote:
>
> Dear Henk,
>
> Thank you for the bug report.
>
> I created internal ticket #27656 and will let know here in list when
> the fix will be released.
>
> I didn't try solution below yet, but possible it will solve the issue
> for you for now:
>
> In the file:
> /usr/share/perl5/NGCP/Panel/Utils/InvoiceTemplate.pm
>
>
> root at sp1:~# grep -n "\-z"
> /usr/share/perl5/NGCP/Panel/Utils/InvoiceTemplate.pm
>
> 47: #-z 0.8 , --dpi-x 72 --dpi-y 72
> 48: my @cmd_args = (qw/-a -f pdf -z 0.8/, @next_pages);
>
> You can try to remove -z 0.8 part and restart ngcp-panel after it.
>
> We added this option years ago as a workaround for the rsvg-convert
> scaling bug.
>
>
> Best regards,
>
> Irina Peshinskaya
>
>
> On 05.12.2017 16:42, Henk wrote:
>>
>> Hi all,
>>
>> I already mentioned this, but maybe it's better to have a separate
>> report for this.
>>
>> 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.
>> I think there is a bug in rsvg-convert that z-scaling is used
>> repeatedly on every page. The panel-debug.log shows
>>
>> 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
>>
>> The result pdf has page 1 scaled to 80%; page 2 64% and page 25 to
>> around 0.4%
>>
>> Regards,
>>
>> Henk Plessius
>>
>>
>>
>> _______________________________________________
>> Spce-user mailing list
>> Spce-user at lists.sipwise.com
>> https://lists.sipwise.com/listinfo/spce-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20171212/4925dbab/attachment-0001.html>
More information about the Spce-user
mailing list