-
Notifications
You must be signed in to change notification settings - Fork 50
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
Is it possible to render content behind the template page? #27
Comments
It is possible in general but prawn-template doesn't currently implement it as far as I can tell. |
Do you happen to have any pointers how I can make it happen? I'm not very
familiar with how the child tree works, or how to insert at the top of it.
Thanks!
…On Mon, May 25, 2020, 4:28 AM Thomas Leitner ***@***.***> wrote:
It is possible in general but prawn-template doesn't currently implement
it as far as I can tell.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEEZZJ7K6SCMYDSBQSOW2TRTJI6FANCNFSM4NJCMINQ>
.
|
So have a look at https://github.com/prawnpdf/prawn-templates/blob/master/lib/pdf/core/page.rb#L29-L41 This is where two additional content streams (a page can have zero, one or more content streams representing the contenst) are added to the page:
What you need to do is modify the first content stream to not only save the graphics state as last instruction but also draw the image you want. As far as to what the best way for this to accomplish would be, it depends on whether this should work just for the one case you have in mind or in a general way. |
I need to render an image behind the content from the template. Is that possible?
The text was updated successfully, but these errors were encountered: