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
Image and Table Header not repeated when Content runs to a second page #364
Comments
The repeating table header was solved through adding
on the table tags, but image replication still not solved |
+1 for image issue in headers (static frames) not repeating |
Update on this - if you set the image as it's own static frame it will be repeated across pages. However if the image is contained within a static frame it will not be repeated.
|
Hi @JSchulte01 thanks for solving this! I am having this exact same problem. what do you mean by "set the image as it's own static frame"? My image is contained within a static frame. I am new to xhtml2pdf |
See example below:
Even though the logo is within the static header block, the logo block is declared as a second static block |
Genius! thank you so much for demonstrating how to solve this. much appreciated |
Could you please make a documentation page of this issue ? looks like interesting topic. |
@luisza This is still a bug. I'm looking into how to fix it properly. I don't think the work-around should be in the docs |
@JSchulte01 I'm still a bit unclear. Check my example:
Then in the html:
Using this method the logo is not repeating |
try this:
|
@JSchulte01 Ah I see what you mean now. Unfortunately, it is still not working for me. |
this works for me:
|
Excellent, it is working now. For me the issue was the containing div having the height set.
I removed that height and added it to the
No need for the |
I found out the issue which is very interesting! With
You need to remove the "height" property when you define the static @frame. So if you define the frame as below, it should be work:
|
I'm making a demo invoice pdf and when stressing the tables I've found my image and table header are stripped - are there any settings I need to turn on here, or is there anything wrong in the below?
The text was updated successfully, but these errors were encountered: