-
Notifications
You must be signed in to change notification settings - Fork 97
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
Table header breaks up on multipage pdfs #8
Comments
@Bharat311 Can you provide the code that causes this unexpected behaviour? Maybe even a failing test case? |
I work with @Bharat311. Here's code that reproduces the issue (see pages 2+):
In particular it's the line |
@johnnyshields Thank you very much. I'll try to find some time next week to look into this issue. If you can provide a failing test case it will greatly speed up my work. |
I'm not really sure how to test this, but we can try to give it a look in the next week. |
@hbrandl, i tried for several hours but couldn't add a failing test case for it. However, here's the minimal code that can be used to reproduce the issue:
The issue is because of the incorrect calculation of the header height for the 2nd page, i think this maybe due to multiple colspan rows in the header. The above was working fine before and has been introduced in this commit: Currently, we are using the latest prawn-tables master without the above commit and it is working fine. |
@Bharat311 @johnnyshields can you confirm that this fixes your issue? |
@hbrandl, Thanks, this fixes our issue. |
@hbrandl looks good to me, thank you! |
Fixed multi line table headers that involve cells that span multiple columns (fixes #8)
Hi, I was using an earlier version of the prawn gem and used it to render the following pdf:
But recently, when i upgraded to the latest master of prawn and prawn-tables for a fix of another issue, the following issue cropped up in the existing pdfs (which was not seen earlier).
Using the option { header: true }, the header was not properly rendered for the subsequent pages, here's a preview of the same pdf now (using the same code base):
Upon investigating, i found the below commit to be the reason for this broken behaviour:
prawnpdf/prawn@ed3d144
I am not completely sure as to how it works but it maybe due to using rowspans in the header. Any help in this regard would be greatly appreciated.
Thanks.
The text was updated successfully, but these errors were encountered: