Examples of writeSelectedRows()


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

                writer.getDirectContent());
            PdfPTable foot = new PdfPTable(3);
            for (int k = 1; k <= 6; ++k)
                foot.addCell("foot " + k);
            foot.setTotalWidth(page.getWidth() - document.leftMargin() - document.rightMargin());
            foot.writeSelectedRows(0, -1, document.leftMargin(), document.bottomMargin(),
                writer.getDirectContent());
        }
        catch (Exception e) {
            throw new ExceptionConverter(e);
        }
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

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

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

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

            for (int k = 0; k < 200; ++k) {
                table.addCell("row " + k);
                table.addCell("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.PdfPTable.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.PdfPTable.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.PdfPTable.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()

            // 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 PdfPTable(4);
            float fontSize = 12;
            BaseFont bf = BaseFont.createFont("Helvetica", "winansi", false);
View Full Code Here

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

      table.addCell(new Phrase("32 Gravitation Court", font8));
      table.addCell(new Phrase("39100 Dole France", font8));
      table.addCell(new Phrase("12345 Ulm Germany", font8));
      table.addCell(new Phrase("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.PdfPTable.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 PdfPTable(4);
            float fontSize = 12;
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.