I use iText 0.96 to generate RTF and PDF files. PDF is generated when user picks "PRINT", and RTF is generated when user picks "DOWNLOAD".

I use the same codes to generate both PDF and RTF as far as how to construct the tables and adding headers etc., the only difference is an instance of either RtfWriter or PdfWriter is obtained depending on what user picks.

Generated PDF is perfect. The problem with the generated RTF is that: I have some very large cells, and instead of spanning the cell to the next page, the extra text that doesn't fit the cell would just be cut off. Actually not cut off, the extra text is hidden - if I reduce the font size in WORD for that cell to a very small size, the hidden text would show.

I am not specifically calling
setTableFitsPage(true) or
setCellsFitPage(true). 

Please advise.

Thanks,Ying Kussmann






Reply via email to