Package com.itextpdf.text.pdf

Examples of com.itextpdf.text.pdf.PdfPHeaderCell


    document.add(cDomainChapter);

  }

  private PdfPCell buildHeaderCell(String text) {
    PdfPHeaderCell h1 = new PdfPHeaderCell();
    Phrase pHeader = new Phrase(text, Fonts.FONT_TITILE3);
    // TODO: 居中,没试出效果
    h1.setHorizontalAlignment(PdfPHeaderCell.ALIGN_CENTER);
    h1.setBackgroundColor(BaseColor.GRAY);
    h1.addElement(pHeader);
    return h1;
  }
View Full Code Here

TOP

Related Classes of com.itextpdf.text.pdf.PdfPHeaderCell

Copyright © 2018 www.massapicom. 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.