Package com.itextpdf.text.pdf

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


        Font catFont = new Font(Font.FontFamily.HELVETICA, 16,
            Font.BOLD);
        textCell = new PdfPCell(new Phrase("Reporte de Novedades: "
            + negocio, catFont));
        textCell.setBorder(Rectangle.NO_BORDER);
        head.addCell(textCell);

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

        head.writeSelectedRows(
View Full Code Here


        Image headImage = Image.getInstance(absoluteDiskPath);
        headImage.scaleToFit(75, 75);
       
                imageCell = new PdfPCell(headImage);
                imageCell.setBorder(Rectangle.NO_BORDER);
                head.addCell(imageCell);

                Font catFont = new Font(Font.FontFamily.HELVETICA, 16,
                  Font.BOLD);
                textCell = new PdfPCell(new Phrase("Reporte de Novedades: " + negocio,catFont));
                textCell.setBorder(Rectangle.NO_BORDER);
View Full Code Here

                Font catFont = new Font(Font.FontFamily.HELVETICA, 16,
                  Font.BOLD);
                textCell = new PdfPCell(new Phrase("Reporte de Novedades: " + negocio,catFont));
                textCell.setBorder(Rectangle.NO_BORDER);
                head.addCell(textCell);

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

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

      // fail silently
    }
    // add the cells
        for (List<PdfPCell> col : rows) {
            for (PdfPCell pc : col) {
                table.addCell(pc);
            }
        }
        return table;
    }
View Full Code Here

        tmp.setBorder(Rectangle.NO_BORDER);
        tmp.setBorderWidth(0);
        tmp.setPadding(0);
        tmp.setUseBorderPadding(false);
        tmp.setHorizontalAlignment(Element.ALIGN_CENTER);
        innerHead.addCell(tmp);
   
    try {
      image = Image.getInstance(PDFHeaderFooterWriter.class.getResource("/images/aufzaehl.jpg"));
    } catch (BadElementException e) {
View Full Code Here

        tmp.setBorder(Rectangle.NO_BORDER);
        tmp.setBorderWidth(0);
        tmp.setPadding(0);
        tmp.setUseBorderPadding(false);
        tmp.setHorizontalAlignment(Element.ALIGN_CENTER);
        innerHead.addCell(tmp);
   
   
    Paragraph paraHead2 = new Paragraph();
    paraHead2.add(new Phrase("    "));
    paraHead2.add(new Chunk(image, 0, 0));
View Full Code Here

        tmp.setBorder(Rectangle.NO_BORDER);
        tmp.setBorderWidth(0);
        tmp.setPadding(0);
        tmp.setUseBorderPadding(false);
        tmp.setHorizontalAlignment(Element.ALIGN_LEFT);
        innerHead.addCell(tmp);
   
        tmp = new PdfPCell(new Paragraph(" ", headerAdressFont));
        tmp.setBorder(Rectangle.NO_BORDER);
        tmp.setBorderWidth(0);
        tmp.setPadding(0);
View Full Code Here

        tmp.setBorder(Rectangle.NO_BORDER);
        tmp.setBorderWidth(0);
        tmp.setPadding(0);
        tmp.setUseBorderPadding(false);
        tmp.setHorizontalAlignment(Element.ALIGN_CENTER);
        innerHead.addCell(tmp);
   
        head.setTotalWidth(page.getWidth() - document.leftMargin() - document.rightMargin());
        head.writeSelectedRows(0, -1, document.leftMargin(), document.top(),
        writer.getDirectContent());
  }
View Full Code Here

            tmp.setBorderWidth(0);
            tmp.setPadding(0);
            tmp.setUseBorderPadding(false);
            tmp.setColspan(4);
            tmp.setHorizontalAlignment(Element.ALIGN_CENTER);
            head.addCell(tmp);
           
            tmp = new PdfPCell(new Phrase("Wir machen gebrauch von der Kleinunternehmerregelung nach � 19 UStG und sind daher nicht gezwungen die Umsatzsteuer auszuweisen.", new Font(Font.FontFamily.TIMES_ROMAN, 8, Font.NORMAL)));
            tmp.setBorder(Rectangle.NO_BORDER);
            tmp.setBorderWidth(0);
            tmp.setPadding(0);
View Full Code Here

            tmp.setBorderWidth(0);
            tmp.setPadding(0);
            tmp.setUseBorderPadding(false);
            tmp.setColspan(4);
            tmp.setHorizontalAlignment(Element.ALIGN_CENTER);
            head.addCell(tmp);
           
            tmp = new PdfPCell(new Phrase(" ", new Font(Font.FontFamily.TIMES_ROMAN, 8, Font.NORMAL)));
            tmp.setBorder(Rectangle.BOTTOM);
            tmp.setPadding(0);
            tmp.setUseBorderPadding(false);
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.