Module: Dorsale::Alexandrie::Prawn
- Included in:
- BillingMachine::InvoiceSingleVatPdf
- Defined in:
- lib/dorsale/alexandrie/prawn.rb
Instance Method Summary collapse
Instance Method Details
#render_with_attachments ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/dorsale/alexandrie/prawn.rb', line 4 def final_pdf = ::CombinePDF.parse(self.render) @main_document..each do || next unless File.extname(.file.path) == ".pdf" final_pdf << ::CombinePDF.load(.file.path) end final_pdf.to_pdf end |