Hello, I am using the following code to place a PdfPTable at an absolute
position:

    float yAbsolutePosition = iTextDoc.bottomMargin() +
iTextPdfPTable.getTotalHeight();
    iTextPdfPTable.writeSelectedRows(0, -1, iTextDoc.leftMargin(),
yAbsolutePosition, pdfWriter.getDirectContent());
    
However, if there is already a table or other text in that position, my
iTextPdfPTable simply writes on top of the existing text.  I would really
like to check if there is anything already there (I really just need to know
if there is anything below the yAbsolutePosition, as this should be the
lowest element on the page), and if there is, start a new page and place the
PdfPTable on the new page.  How can I check what is already at that
position?

Thanks!
twcp
-- 
View this message in context: 
http://www.nabble.com/PdfPTable-Absolute-Positioning-tp24362891p24362891.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to