modules/claims_api/lib/claims_api/poa_pdf_constructor/base.rb
def combine_pdf(id, page1_path, page2_path)
        output_path = "/tmp/#{id}_final.pdf"

        pdf = CombinePDF.new
        pdf << CombinePDF.load(page1_path)
        pdf << CombinePDF.load(page2_path)
        pdf.save(output_path)

        output_path
      end
#
# Produce final pdf with all pages combined.
#
# @param id [type] [description]
# @param page1_path [String] Path to page 1 of pdf
# @param page2_path [String] Path to page 2 of pdf
#
# @return [String] Path to final pdf
Produce final pdf with all pages combined.
Produce final pdf with all pages combined .
def combine_pdf(id, page1_path, page2_path)
        output_path = "/tmp/#{id}_final.pdf"
        pdf = CombinePDF.new
        pdf << CombinePDF.load(page1_path)
        pdf << CombinePDF.load(page2_path)
        pdf.save(output_path)
        output_path
      end
def combine_pdf ( id , page1_path , page2_path ) output_path = "/tmp/#{id}_final.pdf" pdf = CombinePDF . new pdf << CombinePDF . load ( page1_path ) pdf << CombinePDF . load ( page2_path ) pdf . save ( output_path ) output_path end
Produce final pdf with all pages combined.
Produce final pdf with all pages combined .
Path to final pdf
Path to final pdf
String
id
None
page1_path
Path to page 1 of pdf
Path to page 1 of pdf
page2_path
Path to page 2 of pdf
Path to page 2 of pdf