Michael Caletka wrote:

Hm. Maybe it's really too hard to explain properly....

Yet I will give  it one more try:
I don't have any columns on my document, so ColumnText is out.

That's a misconception.
As soon as you want to add text to a document,
you have a column. (A single column is also a column.)

(I tried it, but wasn't satisfied with the results)

That's surprising because ColumnText is document.add
with more power.

I just have some paragraphs, tables and chunks. These elements shall all be added to some main-paragraphs, which should be kept together.

A ColumnText object was designed especially to add
paragraphs, tables and chunks.
Adding tables to a 'main' paragraph is bad design.

I don't know how big any of the given main-paragraphs is going to be, nor how many or which elements I have to add beforehand.

OK.

It depends completely on the data of the Input-File I have to work on.

OK.

If I could find out how big the main-paragraph has grown before I add it to the document, I could live with calculating myself, if it still fits on the page or not.

That's what the method 'go' is for.
Use it in simulation mode and the ColumnText object
will tell you how many lines the 'main paragraph' has,
if it fits the page or not, and so on...

Is there a possibility to get the actual size of a Paragraph-Object (preferably in points) before adding it?

You aren't listening, are you?
ColumnText is THE ONLY OBJECT that will tell you this.

Or is there a way to "test-add" objects to a Document?

Yes, with ColumnText!!!
Are you sure you have tested with ColumnText?
We both risk losing our patience...
br,
Bruno


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to