[Spce-user] Invoices have wrong scaling

Irina Peshinskaya ipeshinskaya at sipwise.com
Wed Apr 18 06:33:55 EDT 2018


Dear Henk,

I really still didn't prepare this fix. I will do in the nearest future 
and will let you know here what versions will contain the fix.

Best regards,
Irina Peshinskaya

On 2018-04-17 13:20, Henk wrote:
>
> Hi Irina,
>
> I still have to change the source after each update, any news on a 
> solution?
>
> Best 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
>>
>
>
>
> _______________________________________________
> 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/20180418/6013b738/attachment-0001.html>


More information about the Spce-user mailing list