Simon Baker wrote:

> I'm new to iText and would like to get some guidance on a good way to 
> generate a pdf report where the data is a bunch of columns.  
> Potentially, there may be a lot of data, so memory stingy techniques 
> are desirable, such as incremantal generation, etc.

A PdfPTable doesn't have to be built in memory before it is added.
You can add it in small portions. See the tutorial and read the part
about tables and memory management.

> My first thought is to use the Table or PdfPTable object, but does the 
> object have to be fully built in memory first?

Don't use class Table.

> Any way to create neat columns would be acceptable.  The data is 
> pulled from a SQL Query as a ResultSet, so I probably would need to 
> guess a column width if that is necessary, or use a technique that 
> could wrap text around in a cell as necessary.
>
> Any advice from those who have worked with columnar data would be 
> appreciated.

If you need columns like this:

A1  B1  C1
A2  B2  C2
... ... ...

use PdfPTable

If you need columns like this:

A  E  I
B  F  J
C  G  K
D  H  L

Use (Multi)ColumnText.
br,
Bruno

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to