List of usage examples for com.itextpdf.text Phrase getInstance
public static final Phrase getInstance(final int leading, String string, final Font font)
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; }