ct.addElement(new Paragraph('my paragraph', fontParagraph) );
ct.setSimpleColumn(450, 190, 595, PageSize.A4.height - 190);
ct.go();
I've also tried using showTextAligned, as demonstrated in HelloWorld4, but the text is not displayed in the right y coordinate and stays at the top left corner.
var cb: PdfContentByte = document.getDirectContent();
var font: BaseFont = BaseFont.createFont( BaseFont.HELVETICA, BaseFont.WINANSI );
cb.beginText();
cb.setFontAndSize( font, 24 );
cb.showTextAligned( Element.ALIGN_LEFT, "Hello spammed world!", 36, 788, 0 );
cb.endText();
I might have missed something, but I can't figure out why the text isn't displayed at the right y coordinate.
Does someone have any ideas/working examples?
Thanks fo your help.