Sha256: 7b4351f24b2b6584608a82f18bf1aa55b64b6bd26474403be0d885f29eabacf7
Contents?: true
Size: 331 Bytes
Versions: 36
Compression:
Stored size: 331 Bytes
Contents
module Dorsale::Alexandrie::Prawn::RenderWithAttachments def render_with_attachments final_pdf = ::CombinePDF.parse(render) attachments.each do |attachment| next unless File.extname(attachment.file.path) == ".pdf" final_pdf << ::CombinePDF.load(attachment.file.path) end final_pdf.to_pdf end end
Version data entries
36 entries across 36 versions & 1 rubygems