List of usage examples for com.itextpdf.text.pdf PdfTemplate showText
public void showText(final String text)
text
. From source file:com.masscustsoft.service.ToPdf.java
License:Open Source License
@Override public void onCloseDocument(PdfWriter writer, Document document) { PdfTemplate tpl = getPgTpl(); tpl.beginText();//from ww w . j a va2s . co m tpl.setFontAndSize(getDefaultFont(), 12); tpl.setTextMatrix(0, 0); tpl.showText(Integer.toString(writer.getPageNumber() - 1)); tpl.endText(); }