You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding multiple nested lists, ColumnText stops rendering the list, when the nesting is reduced by more than one nesting level.
Let's say we have the following list
1
a
i
2
Note the differences in nesting. ColumnText will only render "1", "a" and "i". This happens because the reduction of nesting back to "2" involves more than 1 layer of nesting. If you have a layer in between, it works.
Describe the bug
When adding multiple nested lists, ColumnText stops rendering the list, when the nesting is reduced by more than one nesting level.
Let's say we have the following list
Note the differences in nesting.
ColumnText
will only render "1", "a" and "i". This happens because the reduction of nesting back to "2" involves more than 1 layer of nesting. If you have a layer in between, it works.So this example works as expected:
I managed to track it down to this function https://github.com/LibrePDF/OpenPDF/blob/master/openpdf/src/main/java/com/lowagie/text/pdf/ColumnText.java#L1321 where it seems to exit early when the nesting is reduced by more than one layer.
To Reproduce
I added a very simple reproduction Repo to test this: https://github.com/joostme/openpdf-test/blob/main/src/main/java/org/example/Main.java
Expected behavior
All of the list (regardless of nesting changes) should be rendered in the ColumnText.
System
Your real name
Joost Zöllner
The text was updated successfully, but these errors were encountered: