THBPdf Download Contact Us Buy Online Developerse-mail me

Absolute and proportional columns in iText PdfPTable




Message-ID:<a876a460-4497-462b-a028-23273c682b21@t41g2000hsc.googlegroups.com>
Subject:

Absolute and proportional columns in iText/PdfPTable


Date:Tue, 14 Oct 2008 14:08:58 +0100


Is it possible to create a combination of columns in a iText PDFPTable
where some are absolute width and some proportional?

For example, can I create a table that is 100% of the usable page
width with 5 columns, the first 72 pt wide, the second 144 pt wide,
the third 1/4 of the remaining width, the fourth 1/4 of the remaining
width, and the fifth 1/2 of the remaining width? I can work it out
manually (for US_LETTER in portrait orientation with 1 in margins it
would be 72 pt, 144 pt, 63 pt, 63 pt, 126 pt), but having the library
do it would be easier and cleaner.




Message-ID:<bdc7ce34-ce1f-470c-84fa-4a3de517f311@d45g2000hsc.googlegroups.com>
Subject:

Re: Absolute and proportional columns in iText/PdfPTable


Date:Thu, 16 Oct 2008 16:53:59 +0100


On Oct 14, 2:08=A0pm, Ralph <g...@usa.net> wrote:
> Is it possible to create a combination of columns in a iText PDFPTable
> where some are absolute width and some proportional?
>

No, you'll have to do the math yourself.

Paulo




Message-ID:<a876a460-4497-462b-a028-23273c682b21@t41g2000hsc.googlegroups.com>
Subject:

Absolute and proportional columns in iText/PdfPTable


Date:Tue, 14 Oct 2008 14:08:58 +0100


Is it possible to create a combination of columns in a iText PDFPTable
where some are absolute width and some proportional?

For example, can I create a table that is 100% of the usable page
width with 5 columns, the first 72 pt wide, the second 144 pt wide,
the third 1/4 of the remaining width, the fourth 1/4 of the remaining
width, and the fifth 1/2 of the remaining width? I can work it out
manually (for US_LETTER in portrait orientation with 1 in margins it
would be 72 pt, 144 pt, 63 pt, 63 pt, 126 pt), but having the library
do it would be easier and cleaner.




Message-ID:<bdc7ce34-ce1f-470c-84fa-4a3de517f311@d45g2000hsc.googlegroups.com>
Subject:

Re: Absolute and proportional columns in iText/PdfPTable


Date:Thu, 16 Oct 2008 16:53:59 +0100


On Oct 14, 2:08=A0pm, Ralph <g...@usa.net> wrote:
> Is it possible to create a combination of columns in a iText PDFPTable
> where some are absolute width and some proportional?
>

No, you'll have to do the math yourself.

Paulo




Message-ID:<a876a460-4497-462b-a028-23273c682b21@t41g2000hsc.googlegroups.com>
Subject:

Absolute and proportional columns in iText/PdfPTable


Date:Tue, 14 Oct 2008 14:08:58 +0100


Is it possible to create a combination of columns in a iText PDFPTable
where some are absolute width and some proportional?

For example, can I create a table that is 100% of the usable page
width with 5 columns, the first 72 pt wide, the second 144 pt wide,
the third 1/4 of the remaining width, the fourth 1/4 of the remaining
width, and the fifth 1/2 of the remaining width? I can work it out
manually (for US_LETTER in portrait orientation with 1 in margins it
would be 72 pt, 144 pt, 63 pt, 63 pt, 126 pt), but having the library
do it would be easier and cleaner.




Message-ID:<bdc7ce34-ce1f-470c-84fa-4a3de517f311@d45g2000hsc.googlegroups.com>
Subject:

Re: Absolute and proportional columns in iText/PdfPTable


Date:Thu, 16 Oct 2008 16:53:59 +0100


On Oct 14, 2:08=A0pm, Ralph <g...@usa.net> wrote:
> Is it possible to create a combination of columns in a iText PDFPTable
> where some are absolute width and some proportional?
>

No, you'll have to do the math yourself.

Paulo




 

|THBPdf| |Download| |Developers|