I have implemented a solution using itext-paulo-124.jar. At the time (about a year ago), this version had some fixes that the main build did not.

My code is supposed to ensure that a signature line of a legal document (along with some graphics) does not appear alone on a page. 5 lines of the preceeding paragraph or the entire paragraph (whichever is fewer lines) must appear on the page with the signature line.

I accomplish this by getting the last paragraph, test writing it (ColumnText.go(true)) to get the 5 preceeding 5 lines, then put these lines into a new paragraph with the the signature lines etc. and set keepTogether(true) for the paragraph.

The problem occurs when the signature + preceeding 5 lines fits on the same page as the other lines of the preceeding text (added using ColumnText.go(true) ). An extra blank line, or leading space is inserted between the paragraph added and the previous text, so visually, it looks like a paragraph has an extra blank line before the last 5 lines. As I understand it, changing the leading for the paragraph will change the leading for all lines contained by the paragraph. Is there another option to move this paragraph closer to the previous paragraph?

Hope this wasn't too confusing. Any suggestions?

Thanks,
Tom

_________________________________________________________________
Keep up with high-tech trends here at "Hook'd on Technology." http://special.msn.com/msnbc/hookedontech.armx




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to