Has anybody else considered determination of the percentage of a page that would be occupied by phrases passed into ColumnText?

I will likely do a full page with all full Columns, count the column lines (getLinesWritten) while simulating, then determine the percentage of page coverage for my actual text simulating again. The do a layout based on the percentage of page text I have, and write it out for real.

Is that twisted? Is there other API calls I should be looking at?

Bottom line: I want to know how much of the page is covered with text, so I can then take the appropriate actions of filling in the page with other artifacts (scaling and placing images, titles, quotes, etc.). I saw some discussion on getting the height of a block, but I don't see that in the API, can someone enlighten me; and not certain how block relates to ColumnText.

Thanks,
Pete Gordon


On Sep 16, 2004, at 7:43 AM, Paulo Soares wrote:

I'm always amazed at the effort people do to use Document.add(), creating the most twisted code I've seen just to avoid to keep track at the y position when placing ColumnText and PdfPTable at absolute positions.

Reply via email to