-
Notifications
You must be signed in to change notification settings - Fork 647
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
feat: Add :delete_temporary_files flag #1068
Conversation
For compatibility purposes, we might consider switching the option to |
Yeah, I think I'd prefer the option to be if options[:delete_temporary_files]
file.close!
else
file.close
end What do you think? |
I think that's very sensible! I'll make the changes. |
Could you please add this new option to the README's list of "all options" please? |
As an entry in this section? https://github.com/mileszs/wicked_pdf#super-advanced-usage |
I was thinking under this line here: https://github.com/mileszs/wicked_pdf/blob/master/README.md?plain=1#L262 |
Great stuff! Thank you. |
This is now in version 2.7.0 of wicked_pdf. Thank you for your help! |
Thank you for your guidance! Happy to have contributed. |
Thanks for what seems to be a nice feature maybe there could be more docs on when/why this is useful without this, the temp files will be cleaned up during GC, right? so it's useful maybe for someone creating pdfs at high volume, where the disk files might add up quickly? |
Adds an option to keep the temporary files generated by
pdf_from_string
method. It defaults to using theclose!
handler in the ensure block.