That behavior is documented in the PdfPTables javadoc.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Nicolas Zin [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, October 22, 2002 13:51
> To:   [EMAIL PROTECTED]
> Subject:      [iText-questions] Big cell in a table
> 
> Hi,
> 
> I have a problem using PdfTable.
> When I write a lot of data, such as all the cell is bigger than the page,
> the cell
>  is not splited and the information disappear, without any warning
> moreover.
> A small example fitting better than a big explantation I provide some
> code:
> ----- cuthere -----
> import java.io.*;
> import com.lowagie.text.*;
> import com.lowagie.text.pdf.*;
> 
> public class TableEssai {
>         public static void main(String[] args) {
>                 StringBuffer data = new StringBuffer();
>                 for (int i=0;i<900;i++) {
>                         data.append(" aaaaaaaaa");
>                 }
>                 Document document = new Document();
>                 try {
>                 PdfWriter.getInstance(document, new
> FileOutputStream("TableEssai.pdf"));
>                 document.open();
>                 
>                 PdfPTable pdfTable = new PdfPTable(1);
>                 pdfTable.addCell("0.1");
>                 pdfTable.addCell(data.toString());
>                 document.add(pdfTable);           
>                 } catch(DocumentException de) {
>                     System.err.println(de.getMessage());
>                 } catch(IOException ioe) {
>                         System.err.println(ioe.getMessage());
>                 }
>                 document.close();
>         }
> }
> 
> ----- cuthere -----
> 
> 
> How can I avoid that? (the data don't have necessarily carriage return)
> 
> Nicolas
> 
> 
> -------------------------------------------------------
> This sf.net emial is sponsored by: Influence the future of 
> Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) 
> program now. http://ad.doubleclick.net/clk;4699841;7576301;v?
> http://www.sun.com/javavote
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions


-------------------------------------------------------
This sf.net emial is sponsored by: Influence the future of 
Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) 
program now. http://ad.doubleclick.net/clk;4699841;7576301;v?
http://www.sun.com/javavote
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to