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

Add opts as parameter tp self.to_png method, and 'wb' mode for File.read #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ivankhoda
Copy link

Hello. Thank you for this gem. While using it, I faced some error ""\x89" from ASCII-8BIT to UTF-8", after googling i found this solution which solved the problem, so I desided to add some fixes.

Also i found out that it is impossible to pass a dimensions options x_scale and y_scale, so I added them as well, so final result in my code is looking like this
PDF417.to_png('tmp/barcode.png', value, { x_scale: 4, y_scale: 2 })

Thank you.

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

Successfully merging this pull request may close these issues.

1 participant