11711172117311741175117611771178117911801181
main_loop: while (true) { if (compositeElements.isEmpty()) return NO_MORE_TEXT; Element element = compositeElements.getFirst(); if (element.type() == Element.PARAGRAPH) { Paragraph para = (Paragraph)element; int status = 0; for (int keep = 0; keep < 2; ++keep) { float lastY = yLine; boolean createHere = false;
12311232123312341235123612371238123912401241
} if ((status & NO_MORE_COLUMN) != 0) { return NO_MORE_COLUMN; } } else if (element.type() == Element.LIST) { com.itextpdf.text.List list = (com.itextpdf.text.List)element; ArrayList<Element> items = list.getItems(); ListItem item = null; float listIndentation = list.getIndentationLeft(); int count = 0;
13321333133413351336133713381339134013411342
yLine -= item.getSpacingAfter(); } if ((status & NO_MORE_COLUMN) != 0) return NO_MORE_COLUMN; } else if (element.type() == Element.PTABLE) { // INITIALISATIONS // get the PdfPTable element PdfPTable table = (PdfPTable)element;
15611562156315641565156615671568156915701571
} rowIdx = k; return NO_MORE_COLUMN; } } else if (element.type() == Element.YMARK) { if (!simulate) { DrawInterface zh = (DrawInterface)element; zh.draw(canvas, leftX, minY, rightX, maxY, yLine); } compositeElements.removeFirst();
11381139114011411142114311441145114611471148
11971198119912001201120212031204120512061207
12971298129913001301130213031304130513061307
yLine -= item.getSpacingAfter(); } if ((status & NO_MORE_COLUMN) != 0) return NO_MORE_COLUMN; } else if (element.type() == Element.PTABLE) { // don't write anything in the current column if there's no more space available if (yLine < minY || yLine > maxY) return NO_MORE_COLUMN; // get the PdfPTable element
14791480148114821483148414851486148714881489
} listIdx = k; return NO_MORE_COLUMN; } } else if (element.type() == Element.YMARK) { if (!simulate) { DrawInterface zh = (DrawInterface)element; zh.draw(canvas, leftX, minY, rightX, maxY, yLine); } compositeElements.removeFirst();