Package com.itextpdf.text.pdf

Examples of com.itextpdf.text.pdf.PdfPCell.addElement()


        Chunk par = new Chunk(this.reportSettingsProperties.loadTitle());
        par.setFont(new Font(this.fontMapper.awtToPdf(this.reportSettingsProperties.loadTitleFont())));
        Paragraph enc = new Paragraph(par);
        enc.setAlignment(Element.ALIGN_CENTER);
        PdfPCell cell = new PdfPCell();
        cell.addElement(enc);
        cell.setHorizontalAlignment(Element.ALIGN_CENTER);
        cell.setVerticalAlignment(Element.ALIGN_MIDDLE);
        table.addCell(cell);
        table.addCell(imageR);
        this.document.add(table);
View Full Code Here


  private PdfPCell buildCell(String text, Font font) {
    PdfPCell cell = new PdfPCell();
    Phrase pText = new Phrase(text, font );
    cell.setHorizontalAlignment(PdfPCell.ALIGN_LEFT);
    cell.setVerticalAlignment(PdfPCell.ALIGN_MIDDLE);
    cell.addElement(pText);
    return cell;
  }

  private void addTableTrees(PdfPTable t, List<TableTree> trees) {
    if (trees == null) {
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.