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

Support Prawn PDF output #26

Open
800a7b32 opened this issue Jun 1, 2022 · 3 comments
Open

Support Prawn PDF output #26

800a7b32 opened this issue Jun 1, 2022 · 3 comments

Comments

@800a7b32
Copy link

800a7b32 commented Jun 1, 2022

We are implementing QRBills into a rails application that uses Prawn for generating PDFs.

Right now, for us to be able to use this gem without any modification means we have to output the bill to HTML, then convert it using IMGKit etc into a PNG image (for the whole bill slip) before placing the image into our Prawn output.

What we want is the entire bill slip (not just the qr_code) to output in a format supported by Prawn (e.g. png). We really want to avoid having to manually design the entire bill slip by hand incase the design standards change in the future.

@800a7b32
Copy link
Author

800a7b32 commented Jun 1, 2022

we will be working on implementing support for native Prawn outputs shortly

@800a7b32
Copy link
Author

800a7b32 commented Jun 6, 2022

@damoiser see #27

@andreacanonica
Copy link

@damoiser hi hi - I am also trying to implement your QRBills with Prawn PDF. I am just a beginner - at the moment I manage to get the SVG string. Could you please explain me how to get directly an image for Prawn PDF?

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

2 participants