Package com.itextpdf.text.pdf

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


    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;
  }

  private PdfPCell buildCell(String text) {
    return buildCell(text, Fonts.FONT_MAIN_TEXT);
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.