Hi All,
I want to add a multiple line footer using PdfStamper and PdfContentByte. My code looks like -
PdfContentByte underContent = pdfStamper.getUnderContent(i);
PdfContentByte upperContent = pdfStamper.getOverContent(i);
BaseFont bf = BaseFont.createFont(BaseFont.COURIER,
BaseFont.CP1252, BaseFont.NOT_EMBEDDED);
underContent.beginText();
underContent.setFontAndSize(bf, 8);
underContent.setTextMatrix(10, 10);
underContent.showText(footer);
underContent.newlineText();
underContent.showText(new Integer(i).toString());
But it is adding the content in the same line. Any clues will be helpful.
Regards, Tina