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

How to pick up the generated PDF? #1

Open
mikhailian opened this issue Jul 20, 2009 · 2 comments
Open

How to pick up the generated PDF? #1

mikhailian opened this issue Jul 20, 2009 · 2 comments

Comments

@mikhailian
Copy link

Let's say I want to store the generated PDF for further use given certain conditions. How do I get access to the pdf generated with prawnto?

@isc
Copy link

isc commented Dec 8, 2009

I had a similar need; I wanted to be able to open the pdfs generated during a functional test. I ended up overriding the compile method of the TemplateHandler so that it saves the pdf in the tmp folder :
http://gist.github.com/251572
For the time being I stuck that in my test_helper and it does the job although it's not quite clean (among other things, I'm working on a Rails 2.1 application so the ActionView::Template class doesn't have the name method for instance).

@mikhailian
Copy link
Author

Thanks for the hint, I actually dropped this from my TODO list for some reason, but it is still good to know.

forrest referenced this issue in GetJobber/prawnto Oct 1, 2011
Avoid deprecation warnings in Rails 3
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