Example usage for com.itextpdf.text Phrase getInstance

List of usage examples for com.itextpdf.text Phrase getInstance

Introduction

In this page you can find the example usage for com.itextpdf.text Phrase getInstance.

Prototype

public static final Phrase getInstance(final int leading, String string, final Font font) 

Source Link

Document

Gets a special kind of Phrase that changes some characters into corresponding symbols.

Usage

From source file:com.chaschev.itext.AbstractParagraphBuilder.java

License:Apache License

public static Phrase getInstance(int leading, String string, Font font) {
    return Phrase.getInstance(leading, string, font);
}

From source file:windows.wzListWindow.java

public PdfPCell createCell(String content, int alignment) throws IOException, DocumentException {
    BaseFont ft = BaseFont.createFont(BaseFont.HELVETICA, BaseFont.CP1250, BaseFont.EMBEDDED);
    Font ffont = new Font(ft, 9);
    Phrase ph = new Phrase(content);
    ph.setFont(ffont);//  w w  w.ja v  a  2s  .  c  o  m
    PdfPCell cell = new PdfPCell(Phrase.getInstance(Element.ALIGN_CENTER, content, ffont));
    cell.setHorizontalAlignment(alignment);
    return cell;
}