Examples of writeSelectedRows()


Examples of com.lowagie.text.pdf.PdfPTable.writeSelectedRows()

            PdfPTable table = new PdfPTable(10);
            for (int k = 1; k <= 100; ++k) {
                table.addCell("The number " + k);
            }
            table.setTotalWidth(800);
            table.writeSelectedRows(0, 5, 0, -1, 50, 650, cb);
            document.newPage();
            table.writeSelectedRows(5, -1, 0, -1, 50, 650, cb);
            document.close();
    } catch (Exception de) {
      de.printStackTrace();
View Full Code Here

Examples of com.lowagie.text.pdf.PdfPTable.writeSelectedRows()

                table.addCell("The number " + k);
            }
            table.setTotalWidth(800);
            table.writeSelectedRows(0, 5, 0, -1, 50, 650, cb);
            document.newPage();
            table.writeSelectedRows(5, -1, 0, -1, 50, 650, cb);
            document.close();
    } catch (Exception de) {
      de.printStackTrace();
    }
    // step5
View Full Code Here

Examples of com.lowagie.text.pdf.PdfPTable.writeSelectedRows()

      table.addCell("text 3");
      im.setRotationDegrees(0);
      table.addCell(im);
      table.setTotalWidth(300);
      PdfContentByte cb = writer.getDirectContent();
      table.writeSelectedRows(0, -1, 50, 600, cb);
      table.setHeaderRows(3);
      document.add(table);
    } catch (Exception de) {
      de.printStackTrace();
    }
View Full Code Here

Examples of com.lowagie.text.pdf.PdfPTable.writeSelectedRows()

            cell2.setBorder( 0 );

            head.addCell( cell2 );

            head.setTotalWidth( page.getWidth() - document.leftMargin() - document.rightMargin() );
            head.writeSelectedRows( 0,
                                    -1,
                                    document.leftMargin(),
                                    page.getHeight() - document.topMargin() + head.getTotalHeight(),
                                    writer.getDirectContent() );
View Full Code Here

Examples of com.lowagie.text.pdf.PdfPTable.writeSelectedRows()

            ptable.addCell(new Phrase("Ben Forta", font9));
            ptable.addCell(new Phrase("Pub Date:", font9));
            ptable.addCell(new Phrase("06/05/1998", font9));
            ptable.setTotalWidth(columnWidth);

            currentY = ptable.writeSelectedRows(0, -1, document.left(), currentY, cb) - 20;
            for (int k = 0; k < headings.length; ++k) {
                ct.addText(new Chunk(headings[k] + "\n", font14B));
                ct.addText(new Chunk(texts[k] + "\n\n", font11));
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.