From f2f973e27a1e19714cdc6f585febcde0ba21c6d5 Mon Sep 17 00:00:00 2001 From: hedudelgado Date: Wed, 13 Sep 2017 17:59:53 +0100 Subject: [PATCH 1/2] [MNOE-600] Fix size logo on invoice --- core/app/pdf/mno_enterprise/invoice_pdf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/app/pdf/mno_enterprise/invoice_pdf.rb b/core/app/pdf/mno_enterprise/invoice_pdf.rb index b66860430..1183525cd 100644 --- a/core/app/pdf/mno_enterprise/invoice_pdf.rb +++ b/core/app/pdf/mno_enterprise/invoice_pdf.rb @@ -138,7 +138,7 @@ def add_page_header @pdf.repeat :all do @pdf.bounding_box([0, @pdf.bounds.top+@format[:header_size]], width: 540, height: @format[:footer_size]) do @pdf.float do - @pdf.image image_path('mno_enterprise/main-logo.png'), scale: 0.5 + @pdf.image image_path('mno_enterprise/main-logo.png'), scale: 0.25 end @pdf.move_down 52 @pdf.font_size(20) { @pdf.text "Monthly Invoice - #{@data[:period_month]}", style: :bold, align: :right } From 145bfb8ea9e7145d3c261f87a4f03b695e0de5b4 Mon Sep 17 00:00:00 2001 From: hedudelgado Date: Mon, 18 Sep 2017 14:18:06 +0100 Subject: [PATCH 2/2] [MNOE-600] Add fit logo within header --- core/app/pdf/mno_enterprise/invoice_pdf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/app/pdf/mno_enterprise/invoice_pdf.rb b/core/app/pdf/mno_enterprise/invoice_pdf.rb index 1183525cd..f4be24dab 100644 --- a/core/app/pdf/mno_enterprise/invoice_pdf.rb +++ b/core/app/pdf/mno_enterprise/invoice_pdf.rb @@ -138,7 +138,7 @@ def add_page_header @pdf.repeat :all do @pdf.bounding_box([0, @pdf.bounds.top+@format[:header_size]], width: 540, height: @format[:footer_size]) do @pdf.float do - @pdf.image image_path('mno_enterprise/main-logo.png'), scale: 0.25 + @pdf.image image_path('mno_enterprise/main-logo.png'), :fit => [135, (@format[:footer_size])] end @pdf.move_down 52 @pdf.font_size(20) { @pdf.text "Monthly Invoice - #{@data[:period_month]}", style: :bold, align: :right }