Examples of writeSelectedRows()


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

                table.add("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.LwgPdfPTable.writeSelectedRows()

      table.add("text 3");
      im.setRotationDegrees(0);
      table.add(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.LwgPdfPTable.writeSelectedRows()

            // add the table with document add
            document.add(table);
            // add the table at an absolute position
            table.setTotalWidth(300);
            table.writeSelectedRows(0, -1, 100, 600, writer.getDirectContent());
            document.newPage();
           
            table = new LwgPdfPTable(4);
            float fontSize = 12;
            BaseFont bf = BaseFont.createFont("Helvetica", "winansi", false);
View Full Code Here

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

      table.add(new LwgPhrase("32 Gravitation Court", font8));
      table.add(new LwgPhrase("39100 Dole France", font8));
      table.add(new LwgPhrase("12345 Ulm Germany", font8));
      table.add(new LwgPhrase("45789 Cambridge  England", font8));
     
      table.writeSelectedRows(0, -1, 50, pos, writer.getDirectContent());
    }

    catch (DocumentException de) {
      System.err.println(de.getMessage());
    } catch (IOException ioe) {
View Full Code Here

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

            table.getDefaultCell().setBorder(LwgRectangle.LEFT | LwgRectangle.RIGHT);
            for (int k = 0; k < 24; ++k) {
                table.add("cell " + k);
            }
            table.setTotalWidth(300f);
            table.writeSelectedRows(0, -1, 100, 600, writer.getDirectContent());
            document.newPage();
            document.add(table);
            document.newPage();
            table = new LwgPdfPTable(2);
            float[] rows = { 50f, 250f };
View Full Code Here

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

            for (int k = 0; k < 200; ++k) {
                table.add("row " + k);
                table.add("blah blah blah " + k);
            }
            document.add(new Paragraph("row 0 - 50"));
            table.writeSelectedRows(0, 50, 50, 820, writer.getDirectContent());
            document.newPage();
            document.add(new Paragraph("row 50 - 100"));
            table.writeSelectedRows(50, 100, 50, 820, writer.getDirectContent());
            document.newPage();
            document.add(new Paragraph("row 100 - 150 DOESN'T FIT ON THE PAGE!!!"));
View Full Code Here

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

            }
            document.add(new Paragraph("row 0 - 50"));
            table.writeSelectedRows(0, 50, 50, 820, writer.getDirectContent());
            document.newPage();
            document.add(new Paragraph("row 50 - 100"));
            table.writeSelectedRows(50, 100, 50, 820, writer.getDirectContent());
            document.newPage();
            document.add(new Paragraph("row 100 - 150 DOESN'T FIT ON THE PAGE!!!"));
            table.writeSelectedRows(100, 150, 50, 200, writer.getDirectContent());
            document.newPage();
            document.add(new Paragraph("row 150 - 200"));
View Full Code Here

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

            document.newPage();
            document.add(new Paragraph("row 50 - 100"));
            table.writeSelectedRows(50, 100, 50, 820, writer.getDirectContent());
            document.newPage();
            document.add(new Paragraph("row 100 - 150 DOESN'T FIT ON THE PAGE!!!"));
            table.writeSelectedRows(100, 150, 50, 200, writer.getDirectContent());
            document.newPage();
            document.add(new Paragraph("row 150 - 200"));
            table.writeSelectedRows(150, -1, 50, 820, writer.getDirectContent());
    } catch (Exception de) {
      de.printStackTrace();
View Full Code Here

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

            document.newPage();
            document.add(new Paragraph("row 100 - 150 DOESN'T FIT ON THE PAGE!!!"));
            table.writeSelectedRows(100, 150, 50, 200, writer.getDirectContent());
            document.newPage();
            document.add(new Paragraph("row 150 - 200"));
            table.writeSelectedRows(150, -1, 50, 820, writer.getDirectContent());
    } catch (Exception de) {
      de.printStackTrace();
    }
    // step5
    document.close();
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
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.