-
Notifications
You must be signed in to change notification settings - Fork 96
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
added repeatable header for overflow tables #166
added repeatable header for overflow tables #166
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! However, I think it needs a little ❤️ still. As soon as the test passes (and the PDF itself is readable correctly), I'm happy to merge. (We can also check then if we can easily refactor the code to reduce the duplication, but I think it's best to start like this and improve only afterwards.)
import de.redsix.pdfcompare.CompareResult; | ||
import de.redsix.pdfcompare.PdfComparator; | ||
|
||
public class OverflowOnSamePageRepeatableHeaderTableDrawerTest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This class doesn't test anything yet.
Interestingly I also can't open the new PDF file.
Essentially it's missing the comparing part, like this:
final CompareResult compareResult = new PdfComparator<>(
getExpectedPdfFor(OVERFLOW_ON_SAME_PAGE_PDF),
getActualPdfFor(OVERFLOW_ON_SAME_PAGE_PDF)
).compare();
assertTrue(compareResult.isEqual());
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if you mean something else, but I'm comparing the pdfs at line 45 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed! My bad, I simply overlooked it. Sorry!
Hey,
|
Hey Matteo, the new PDF didn't work for me either, but that's not a big thing: I could produce it by running the test and that one worked correctly. I will simply replace it after I merged this PR. Thanks again for your contribution! Best, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will release after the merge (I hope the release process still works as in the past!)
Hey Stefan, Sure, I'd be glad to help if I can! Best, Matteo |
Hey,
I've added a new class called "OverflowOnSamePageRepeatableHeaderTableDrawer". The name is kinda long, maybe it should be changed.
I kinda mixed @vandeseer's "RepeatedHeaderTableDrawer" and "OverflowOnSamePageTableDrawer" together.
It allows tables which overflows on the same page to have repeatable headers as well.
PS: the table starting at a different y position was my mistake and no bug. I misunderstood how the offset worked :)