Package com.itextpdf.text.pdf

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


        head.addCell(textCell);

        head.setTotalWidth(page.getWidth() - document.leftMargin()
            - document.rightMargin());

        head.writeSelectedRows(
            0,
            -1,
            document.leftMargin(),
            page.getHeight() - document.topMargin()
                + head.getTotalHeight(),
View Full Code Here


                head.addCell(textCell);

                head.setTotalWidth(page.getWidth() - document.leftMargin()
                                - document.rightMargin());

                head.writeSelectedRows(0, -1, document.leftMargin(), page
                                .getHeight()
                                - document.topMargin() + head.getTotalHeight(), writer
                                .getDirectContent())
                document.add(new Paragraph("\n"));
View Full Code Here

            tmp.setUseBorderPadding(false);
            tmp.setHorizontalAlignment(Element.ALIGN_LEFT);
            head.addCell(tmp);           
           
            head.setTotalWidth(page.getWidth() - document.leftMargin() - document.rightMargin());
            head.writeSelectedRows(0, -1, document.leftMargin(), document.bottomMargin()+50,
            writer.getDirectContent());
        }
        catch (Exception e) {
            throw new ExceptionConverter(e);
        }
View Full Code Here

            }
            PdfContentByte cb = writer.getDirectContent();
            // cb.saveState();
            // write the headertable
            table.setTotalWidth(document.right() - document.left());
            table.writeSelectedRows(0, -1, document.left(), document.getPageSize().getHeight() - 50, cb);
            // compose the footer
            String text = "Page " + writer.getPageNumber();
            float textSize = helv.getWidthPoint(text, 12);
            float textBase = document.bottom() - 20;
            cb.beginText();
View Full Code Here

      pageTable.setTotalWidth(100F);
      PdfPCell c = new PdfPCell(new Paragraph("Seite " + writer.getPageNumber()));
      c.setBorder(0);
      c.setHorizontalAlignment(PdfPCell.ALIGN_RIGHT);
      pageTable.addCell(c);
      pageTable.writeSelectedRows(0, -1, 480F, 30F, cb);
     
    }
  }

  public void onChapter(PdfWriter arg0, Document arg1, float arg2, Paragraph arg3) {}
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.