diff --git a/lib/patches/pdf_patch.rb b/lib/patches/pdf_patch.rb index 5bd3ec2..f5cfc9a 100644 --- a/lib/patches/pdf_patch.rb +++ b/lib/patches/pdf_patch.rb @@ -250,7 +250,15 @@ module Patches pdf.ln end end - pdf.output + + # Check to see if there is an estimate attached, then combine them + if issue.estimate + pdf = CombinePDF.parse(pdf.output, allow_optional_content: true) + pdf << CombinePDF.parse(issue.estimate.pdf) + return pdf.to_pdf + end + + return pdf.output end end