Whatever I do I can't seem to get it right. I'm now using ColumnText to add
both the text, tables and images.
But I still get the previous problem when adding the images as absolute
positions.
PdfContentByte cb = writer.getDirectContent();
ColumnText ct = new ColumnText(cb);
ct.setSimpleColumn(0f, 0f, PageSize.A4.width() - 5, PageSize.A4.height() -
5, 18, Element.ALIGN_JUSTIFIED);
First I add some text, a table and some text to the ct.addElement
(). Then I add two images at the same absolute position 330 with cb.addImage
()
For last I add two tables with ct.addElement(), but these two are still
aligned inside the image. How do I get the ColumnText to insert them after
the image?
I have found a temporary solution to this problem, but it is a ugly hack, 14
document.add(Chunk.NEWLINE) after adding the images. I would like to find a
better solution
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/