Skip to content

Commit

Permalink
Fix spec and the pdf generation parses the pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
orbanbotond committed Dec 10, 2024
1 parent 7ecab7a commit b2c3b85
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

source 'https://rubygems.org'

# ruby '2.6.10'
ruby '3.3.0'

gem 'haml', '~> 6.3'
Expand Down
3 changes: 2 additions & 1 deletion lib/combine_pdfs.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
class CombinePdfs
def call(pdfs)
combined_pdf = CombinePDF.new
combined_pdf = pdfs.reduce(combined_pdf) { |combined, pdf| combined << pdf; combined }

pdfs.each {|pdf| combined_pdf << CombinePDF.parse(pdf) }

combined_pdf.to_pdf
end
Expand Down
Binary file modified spec/fixtures/pdfs/1.pdf
Binary file not shown.

0 comments on commit b2c3b85

Please sign in to comment.