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
OK, method getKeepTogether() is used in PdfDocument.add(Element) if the element is Paragraph, but not if it is ListItem, although ListItem extends Paragraph ...
public boolean add(Element element) throws DocumentException {
...
try {
switch(element.type()) {
...
case Element.PARAGRAPH: {
...
// if a paragraph has to be kept together, we wrap it in a table object
if (paragraph.getKeepTogether()) {
...
case Element.LISTITEM: {
...
Activity
andreasrosdalw commentedon Jun 18, 2020
Pull requests welcome.
arnthom commentedon Jun 18, 2020
OK, method getKeepTogether() is used in PdfDocument.add(Element) if the element is Paragraph, but not if it is ListItem, although ListItem extends Paragraph ...
mraniketr commentedon Feb 25, 2024
does it need to be encapsulated in a table just like paragraph? as that is causing it to fail when using list item in a list component
asturio commentedon Mar 8, 2024
Pull requests are still welcome.