How to avoid reducing the width of the columns?

1

I'm using the itextsharp library for reporting in PDF and although I can generate documents with nice layout and assign specific widths through an array of dimensions:

Tabela.SetWidths(VetorDeLarguras)

However, when the number of columns in my table is very large, then the library ends up reducing the width of the columns so that other columns can occupy space in the table. Is there any way to prevent this automatic reduction in the width of the columns? even though the table will extrapolate the page.

Thank you.

    
asked by anonymous 19.02.2015 / 20:02

1 answer

1

There is PdfPtable.SetTotalWidth(float[] columnWidth) that sets the width of the columns to absolute values.

To write only the columns that are intended per page we have PdfPTable.WriteSelectedRows() .

    
19.02.2015 / 23:38