Ok,
Can I calculate the size of a PdfPTable before definitely adding it to the
document.
Because if it is to big for a software-defined area, that changes every new
position of the invoice, I have to print different headers and footers. And
there might be a recursion of multiple "Lists".
Here an example:
-----Page 1-----
Client: Hugo
Address 1
Pos 1
Pos 2
Pos 3
Address 2
Pos 1
Pos 2
-----------------
-----Page 2-----
Client: Hugo
Address 3
Pos 1
Pos 2
Pos 3
-----------------
If e.g. there are more than 2 positions for address 2 this block does not
fit to the first page completely. Therefor the second page should look like:
-----Page 2-----
Client: Hugo
Address 2
Pos 3
Address 3
Pos 1
Pos 2
Pos 3
-----------------
If you need complex layouts use PdfPTable and ColumnText placed at precise
positions. You'll have full control of dimensions and positioning.
For headers and footers use page events.
Best Regards,
Paulo Soares
> -----Original Message-----
> From: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> [
SMTP:[EMAIL PROTECTED] <mailto:SMTP:[EMAIL PROTECTED]>]
> Sent: Tuesday, January 22, 2002 10:09
> To: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
> Subject: [iText-questions] get dimension of Cells, Rows, Chunks,
> Phrases and Paragraphs
> Importance: High
>
>
> How can I retrieve the dimensions of a generated Cell, Row, Paragraph, ...
> ?
>
> To generat complex lists (invoices, orders, offers) I need to calculate
> the
> size of a newly generated position and the remaining space on the form.
> Depending on this information i have to print special footers and several
> headers on the next page.
>
> Thomas
>
> eMail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
> <https://lists.sourceforge.net/lists/listinfo/itext-questions>
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions