Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rickenharp
Copy link
Contributor

I noticed that when I reuse a Prawn template to render a PDF, instead of getting a pristine output, it would render the new PDF on top of the previous one. Because the Prawn::Document does not get reset after rendering, it turns into palimpsest.

This change ensures that every render starts with a fresh Prawn::Document to avoid this behavior.

@jeremyevans
Copy link
Owner

Thank you for the patch. Looks like this issue has been present ever since the code was initially added in e859993.

@jeremyevans jeremyevans merged commit 48ace49 into jeremyevans:master Jul 13, 2025
15 checks passed
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.

2 participants