/** * Writes the selected rows to the document. * * @param rowStart the first row to be written, zero index * @param rowEnd the last row to be written + 1. If it is -1 all the rows to * the end are written * @param xPos the x write coordinate * @param yPos the y write coordinate * @param canvas the <CODE>PdfContentByte</CODE> where the rows will be * written to * @return the y coordinate position of the bottom of the last row */ public float writeSelectedRows(final int rowStart, final int rowEnd, final float xPos, final float yPos, final PdfContentByte canvas) { return writeSelectedRows(0, -1, rowStart, rowEnd, xPos, yPos, canvas); }
/** * Writes the selected rows to the document. * * @param rowStart the first row to be written, zero index * @param rowEnd the last row to be written + 1. If it is -1 all the rows to * the end are written * @param xPos the x write coordinate * @param yPos the y write coordinate * @param canvas the <CODE>PdfContentByte</CODE> where the rows will be * written to * @return the y coordinate position of the bottom of the last row */ public float writeSelectedRows(final int rowStart, final int rowEnd, final float xPos, final float yPos, final PdfContentByte canvas) { return writeSelectedRows(0, -1, rowStart, rowEnd, xPos, yPos, canvas); }
/** * Writes the selected rows to the document. <CODE>canvases</CODE> is * obtained from <CODE>beginWritingRows()</CODE>. * * @param rowStart the first row to be written, zero index * @param rowEnd the last row to be written + 1. If it is -1 all the rows to * the end are written * @param xPos the x write coordinate * @param yPos the y write coordinate * @param canvases an array of 4 <CODE>PdfContentByte</CODE> obtained from * <CODE>beginWrittingRows()</CODE> * @return the y coordinate position of the bottom of the last row * @see #beginWritingRows(com.itextpdf.text.pdf.PdfContentByte) */ public float writeSelectedRows(final int rowStart, final int rowEnd, final float xPos, final float yPos, final PdfContentByte[] canvases) { return writeSelectedRows(0, -1, rowStart, rowEnd, xPos, yPos, canvases); }
/** * Writes the selected rows to the document. <CODE>canvases</CODE> is * obtained from <CODE>beginWritingRows()</CODE>. * * @param rowStart the first row to be written, zero index * @param rowEnd the last row to be written + 1. If it is -1 all the rows to * the end are written * @param xPos the x write coordinate * @param yPos the y write coordinate * @param canvases an array of 4 <CODE>PdfContentByte</CODE> obtained from * <CODE>beginWrittingRows()</CODE> * @return the y coordinate position of the bottom of the last row * @see #beginWritingRows(com.itextpdf.text.pdf.PdfContentByte) */ public float writeSelectedRows(final int rowStart, final int rowEnd, final float xPos, final float yPos, final PdfContentByte[] canvases) { return writeSelectedRows(0, -1, rowStart, rowEnd, xPos, yPos, canvases); }
/** * Writes the selected rows and columns to the document. This method clips * the columns; this is only important if there are columns with colspan at * boundaries. The table event is only fired for complete rows. * * @param colStart the first column to be written, zero index * @param colEnd the last column to be written + 1. If it is -1 all the * columns to the end are written * @param rowStart the first row to be written, zero index * @param rowEnd the last row to be written + 1. If it is -1 all the rows to * the end are written * @param xPos the x write coordinate * @param yPos the y write coordinate * @param canvas the <CODE>PdfContentByte</CODE> where the rows will be * written to * @return the y coordinate position of the bottom of the last row */ public float writeSelectedRows(final int colStart, final int colEnd, final int rowStart, final int rowEnd, final float xPos, final float yPos, final PdfContentByte canvas) { return writeSelectedRows(colStart, colEnd, rowStart, rowEnd, xPos, yPos, canvas, true); }
/** * Writes the selected rows and columns to the document. This method clips * the columns; this is only important if there are columns with colspan at * boundaries. The table event is only fired for complete rows. * * @param colStart the first column to be written, zero index * @param colEnd the last column to be written + 1. If it is -1 all the * columns to the end are written * @param rowStart the first row to be written, zero index * @param rowEnd the last row to be written + 1. If it is -1 all the rows to * the end are written * @param xPos the x write coordinate * @param yPos the y write coordinate * @param canvas the <CODE>PdfContentByte</CODE> where the rows will be * written to * @return the y coordinate position of the bottom of the last row */ public float writeSelectedRows(final int colStart, final int colEnd, final int rowStart, final int rowEnd, final float xPos, final float yPos, final PdfContentByte canvas) { return writeSelectedRows(colStart, colEnd, rowStart, rowEnd, xPos, yPos, canvas, true); }
/** * Writes the selected rows and columns to the document. This method does * not clip the columns; this is only important if there are columns with * colspan at boundaries. <CODE>canvases</CODE> is obtained from * <CODE>beginWritingRows()</CODE>. The table event is only fired for * complete rows. * * @param colStart the first column to be written, zero index * @param colEnd the last column to be written + 1. If it is -1 all the * columns to the end are written * @param rowStart the first row to be written, zero index * @param rowEnd the last row to be written + 1. If it is -1 all the rows to * the end are written * @param xPos the x write coordinate * @param yPos the y write coordinate * @param canvases an array of 4 <CODE>PdfContentByte</CODE> obtained from * <CODE>beginWritingRows()</CODE> * @return the y coordinate position of the bottom of the last row * @see #beginWritingRows(com.itextpdf.text.pdf.PdfContentByte) */ public float writeSelectedRows(final int colStart, final int colEnd, final int rowStart, final int rowEnd, final float xPos, final float yPos, final PdfContentByte[] canvases) { return writeSelectedRows(colStart, colEnd, rowStart, rowEnd, xPos, yPos, canvases, true); }
/** * Writes the selected rows and columns to the document. This method does * not clip the columns; this is only important if there are columns with * colspan at boundaries. <CODE>canvases</CODE> is obtained from * <CODE>beginWritingRows()</CODE>. The table event is only fired for * complete rows. * * @param colStart the first column to be written, zero index * @param colEnd the last column to be written + 1. If it is -1 all the * columns to the end are written * @param rowStart the first row to be written, zero index * @param rowEnd the last row to be written + 1. If it is -1 all the rows to * the end are written * @param xPos the x write coordinate * @param yPos the y write coordinate * @param canvases an array of 4 <CODE>PdfContentByte</CODE> obtained from * <CODE>beginWritingRows()</CODE> * @return the y coordinate position of the bottom of the last row * @see #beginWritingRows(com.itextpdf.text.pdf.PdfContentByte) */ public float writeSelectedRows(final int colStart, final int colEnd, final int rowStart, final int rowEnd, final float xPos, final float yPos, final PdfContentByte[] canvases) { return writeSelectedRows(colStart, colEnd, rowStart, rowEnd, xPos, yPos, canvases, true); }
if(header){ int y=height-margin; table.writeSelectedRows(0, -1, leftMargin,y, writer.getDirectContent()); }else{ table.writeSelectedRows(0, -1, leftMargin,margin+hfHeight, writer.getDirectContent());
float y = writeSelectedRows(colStart, colEnd, rowStart, rowEnd, xPos, yPos, canvases, reusable); endWritingRows(canvases);
float y = writeSelectedRows(colStart, colEnd, rowStart, rowEnd, xPos, yPos, canvases, reusable); endWritingRows(canvases);
if(header){ int y=height-margin; table.writeSelectedRows(0, -1, leftMargin,y, writer.getDirectContent()); }else{ table.writeSelectedRows(0, -1, leftMargin,margin+hfHeight, writer.getDirectContent());
canvases[PdfPTable.TEXTCANVAS].openMCBlock(table); nt.writeSelectedRows(0, -1, 0, -1, x1, yLineWrite, canvases, false); if (isTagged(canvases[PdfPTable.TEXTCANVAS])) { canvases[PdfPTable.TEXTCANVAS].closeMCBlock(table); canvas.openMCBlock(table); nt.writeSelectedRows(0, -1, 0, -1, x1, yLineWrite, canvas, false); if (isTagged(canvas)) { canvas.closeMCBlock(table);
canvases[PdfPTable.TEXTCANVAS].openMCBlock(table); nt.writeSelectedRows(0, -1, 0, -1, x1, yLineWrite, canvases, false); if (isTagged(canvases[PdfPTable.TEXTCANVAS])) { canvases[PdfPTable.TEXTCANVAS].closeMCBlock(table); canvas.openMCBlock(table); nt.writeSelectedRows(0, -1, 0, -1, x1, yLineWrite, canvas, false); if (isTagged(canvas)) { canvas.closeMCBlock(table);
table.writeSelectedRows(0, -1, document.left(), document.getPageSize().getHeight() - 50, cb);