def add_page_header
      title = Settings.payment.disabled ? 'Account Statement - ' : 'Monthly Invoice - '
      @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 main_logo_white_bg_path(true), fit: [135, (@format[:footer_size])]
          end
          @pdf.move_down 52
          @pdf.font_size(20) { @pdf.text "#{title} #{@data[:period_month]}", style: :bold, align: :right }
        end
      end
    end
def add_page_header
      title = Settings.payment.disabled ? 'Account Statement - ' : 'Monthly Invoice - '
      @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 main_logo_white_bg_path(true), fit: [135, (@format[:footer_size])]
          end
          @pdf.move_down 52
          @pdf.font_size(20) { @pdf.text "#{title} #{@data[:period_month]}", style: :bold, align: :right }
        end
      end
    end
Add a repeated header to the document