Skip to content
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

Print large text cells that exceed the remaining height of one page of paper starting from the second page rather than from the remaining height of the first page #1188

Open
JUNE-Colin opened this issue Jul 2, 2024 · 1 comment
Labels

Comments

@JUNE-Colin
Copy link

The version I am using for OPNNPDF is 1.3.34
Create three rows of cells, with the first and second rows being regular text strings and the third row being large text strings. The length of the text in the third row exceeds the remaining height of one page of paper. When printing the large text in the third row, it will start from the second page of paper instead of the remaining height of the first page. Is there a solution to this problem?

Code samples:
code_samples

Example of incorrect output:
Example_of_incorrect_output

@JUNE-Colin JUNE-Colin added the bug label Jul 2, 2024
@StevenStreasick
Copy link
Contributor

StevenStreasick commented Aug 6, 2024

I was able to fix my version of this 'bug' by calling table.setSplitLate(false);. As long as you do not set setSplitRows to false, this should fix your problem. The documentation for splitLate is as following:

If true the row will only split if it's the first one in an empty page. It's true by default. It's only meaningful if setSplitRows(true).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants