Skip to content

Commit

Permalink
fix for can't modify frozen string error
Browse files Browse the repository at this point in the history
  • Loading branch information
francescob committed Dec 6, 2024
1 parent 44f46fa commit 9e501d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/combine_pdf/basic_writer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class PDFWriter < Hash
# mediabox:: the PDF page size in PDF points. defaults to [0, 0, 612.0, 792.0] (US Letter)
def initialize(mediabox = [0, 0, 612.0, 792.0])
# indirect_reference_id, :indirect_generation_number
@contents = ''
@contents = String.new
@base_font_name = 'Writer' + SecureRandom.hex(7) + 'PDF'
self[:Type] = :Page
self[:indirect_reference_id] = 0
Expand Down

0 comments on commit 9e501d6

Please sign in to comment.