Skip to content

Commit

Permalink
Merge pull request #245 from CPO-Piemonte/master
Browse files Browse the repository at this point in the history
fix for can't modify frozen string error
  • Loading branch information
boazsegev authored Dec 6, 2024
2 parents 44f46fa + 9e501d6 commit a3a9d4e
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 a3a9d4e

Please sign in to comment.