As far as I can see in the examples of the tutorial, you always have to give the Column a rectangle in absolute positions. I don't have the positions beforehand, so I can't define a rectangle of positions for adding my paragraphs, chunks and tables in. Somehow I don't get how to define the object properly, so that I can use it. (My trials with the SimpleColumn and also with the ColumnText led to very obscure looking results.)
Perhaps, if you still got some patience left you could get me a sample-code for just how to define a ColumnText object right? I want it to fit on a A4-page with margins 60 for left and right, and 50 for top and bottom. I'm sorry, if I give the impression, that I'm just stupid, but somehow I really don't see how it is done.
All the best
Michael
2006/5/31, bruno <[EMAIL PROTECTED]>:
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