Use ColumnText and do you own layout calculations, it never fails. Use the
version at itextpdf.sf.net.

Best Regards,
Paulo Soares

----- Original Message ----- 
From: "Sheldon Fernandes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 21, 2004 13:23
Subject: [iText-questions] Paragraph fits page


> Hi,
>
> I need to know if there is a way to find out if a paragraph fits on a
page,
> before actually inserting the paragraph. Something similar to
> fitsPage(Table).
>
> Actually the problem we are facing is that even though the paragraph just
> fits the page, the startPage() event is getting called. Here we are
changing
> the margins for the next page. So the next page margins are wrongly
getting
> set to the current page margin (even though the current page text does not
> overflow). We need to set new margins for the next page, when the text
does
> not overflow to the next page.
>
> Note: The Text is dynamically picked up from the database. So we cannot
> control that.
>
> I have been struggling with this for more than a week. Any help would be
> greatly appreciated.
> Thanks in advance,
> Sheldon
>
>
>
> --------------------------------------------------------------------------
----------------------------------------------
> Disclaimer: This e-mail message along with attachment, contain Patni GE
Confidential, proprietary & legally privileged information for the sole use
of the person or entity to whom this message was originally addressed. Any
review, e-transmission dissemination or other use of or taking of any action
in reliance upon this information by persons or entities other than the
intended recipient is prohibited. If you have received this e-mail in error
kindly delete this e-mail from your records. If it appears that this mail
has been forwarded to you without proper authority, please notify the sender
and delete this mail. This email (in whole or in part) is not to be
reproduced or furnished to third parties or made public without the prior
express written permission of the sender.
> --------------------------------------------------------------------------
----------------------------------------------
>



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to