I tried PdfPTable to get the RowHeight, but the RowHeight is returned only
after rendering to the PDF Document. But we require to get the Row or Cell
Height before I render to the Document. I am giving my actual requirement
below,
We are printing a Table for each Page. When one of the Page's Table exceeds
the Page Height, the remaining cells of that page is getting printed in the
New Page, which we do not want. So, we want to get the Number of Rows
printed in each page, including the Spanned Rows within the Cell to
determine the Maximum rows that was printed in a Page. If the Number of
rows printed in this Page exceeds the Maximum Rows (that the page can
accomodate), then we want to move the Last Row of the Current Page to the
New Page and start all over again.
I am attaching the sample PDF for your reference on the problem we are
facing. If you look at the 2nd Page of this Output, you can see 1 row
alone, which should have been printed in the 1st page. But since the 1st
Page has already reached the Maximum rows to be printed, I want this 2nd
page to be started in a new Table Object.
Thanks
Sarathy
(See attached file: Sample.pdf)
Paulo Soares
<psoares@(protected)>,
ste.pt> itext-questions@(protected)
cc:
09/05/2003 Subject: RE: [iText-questions] Getting Number of Lines in the Cell
07:22 AM
For PdfPTable you can get the row height.
Best Regards,
Paulo Soares
> -----Original Message-----
> From: Sarathy@(protected)]
> Sent: Friday, September 05, 2003 3:22
> To: itext-questions@(protected)
> Subject: [iText-questions] Getting Number of Lines in the Cell
>
> Does anyone know how to get the Number of Lines taken by the Text inside
> the Cell or PdfPCell? I need this information to determine when to give a
> page-break for each pages. If this is not possible, I need the Cell
Height
> taken. I tried the Height Property and getFixedHeight Properties, but
none
> of them helped me.
>
> Thanks in advance.
>
> Thanks
> Sarathy
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> iText-questions mailing list
> iText-questions@(protected)
> https://lists.sourceforge.net/lists/listinfo/itext-questions

Attachment:
Sample.pdf