Hello
I have written an application that writes a lot of text to a page at various
places and whilst I know that a certain point is blank I do not know how much of
the surrounding area is blank. The content is all added using absolute
positioning so I could probably track this in my own code but is there an out of
the box way to do this?
I've looked at what I think are the obvious classes PdfContentByte, PdfPage and
Document but cannot see anything suitable.
Basically I want to be able do something like this ...
Rectangle rectangle = contentByte.getAvailableWhitespace(float x, float y)
// Add image to rectangle with confidence nothing is being overwritten
... possibly passing in an additional parameter telling the method whether to
return a tall or a wide box if there are two possible options.
Many thanks
Ivor
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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/