Package com.itextpdf.text.pdf.PdfPTable

Examples of com.itextpdf.text.pdf.PdfPTable.FittingRows


                // if the table isn't complete, we need to be able to add a footer
                if (!table.isComplete())
                  yTemp -= footerHeight;
                // k will be the first row that doesn't fit
                // Contributed by Deutsche Bahn Systel GmbH (Thorsten Seitz), splitting row spans
                FittingRows fittingRows = table.getFittingRows(yTemp - minY, rowIdx);
                k = fittingRows.lastRow + 1;
                yTemp -= fittingRows.height;
                // splitting row spans

                LOGGER.info("Want to split at row " + k);
                int kTemp = k;
                while (kTemp > rowIdx && kTemp < table.size() && table.getRow(kTemp).isMayNotBreak()) {
                    kTemp--;
                }
                if ((kTemp > rowIdx && kTemp < k) || (kTemp == 0 && table.getRow(0).isMayNotBreak() && table.isLoopCheck())) {
                  yTemp = minY;
                  k = kTemp;
                  table.setLoopCheck(false);
                }
                LOGGER.info("Will split at row " + k);

                // Contributed by Deutsche Bahn Systel GmbH (Thorsten Seitz), splitting row spans
                if (table.isSplitLate() && k > 0) {
                    fittingRows.correctLastRowChosen(table, k - 1);
                }
                // splitting row spans

                // only for incomplete tables:
                if (!table.isComplete())
View Full Code Here

TOP

Related Classes of com.itextpdf.text.pdf.PdfPTable.FittingRows

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.