MultiColumnText next column or next page problem
- From: raymond moesker <raymond_moesker (at) yahoo.com>
- Date: Thu, 2 Feb 2006 07:57:58 -0800 (PST)
Some background info:
I?m trying to add articles to a PDF file using the MultiColumnText class. This works fine.
My problem is when an article starts at the almost end of a column it has to move to the next column or next page if it is the second column.
What I do:
I?m opening a Document.(I?m using a PageEvent for adding the footer and header) Then I create a MultiColumnText. This MultiColumnText gets filled with articles and after it's filled it's added to the Document.
My
problems:
1.
When I?m using the mct.nextColumn() function within the MultiColumnText it only works for the first page.
2.
My first thought was to use a onParagraphEnd(PageEvent) to calculate the end of a Paragraph in a MultiColumnText. This only seems to work at the Document level.
Does someone know a solution for my problem?(when a article starts at the almost end of a column it has to move to the next column or next page if it is the second column.)
Thanks Ray
Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.