Hi
In the
onEndPage method I want to make a footer. I'm using the showText() method of
PdfContentByte to show the text.
Everything works, but if I'm declaring my string with
"\n" for new line it is ignored. This is my code:
String text = "Some text\nSome
othertext";
float len = bf.getWidthPoint(text, 8);
cb.beginText();
cb.setFontAndSize(bf, 8);
cb.setTextMatrix(280, 30);
cb.showText(text);
cb.endText();
float len = bf.getWidthPoint(text, 8);
cb.beginText();
cb.setFontAndSize(bf, 8);
cb.setTextMatrix(280, 30);
cb.showText(text);
cb.endText();
Any
suggestions ?
Thx
