Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FrozenError: can't modify frozen String: "1 0 obj\n" when saving a pdf on 1.0.27~1.0.29 versions #247

Open
isaporto opened this issue Jan 17, 2025 · 0 comments

Comments

@isaporto
Copy link

Hello! I apologize for giving you more work!

I am using the CombinePDF gem for the textbox feature, but when I try to save the pdf, it always give me the following error:

pry(main)> pdf.save "public/pdf-test.pdf"
FrozenError: can't modify frozen String: "1 0 obj\n"
from /home/isaporto/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/combine_pdf-1.0.27/lib/combine_pdf/renderer.rb:112:in `force_encoding'

I tried on versions 1.0.29, 1.0.28, 1.0.27, but only it worked on 1.0.26 version.

Rails version: 6.1.7.9
Ruby version: 2.7.2p137
combine_pdf gem versions: 1.0.27~1.0.29
OS: Windows 11 + WSL2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant