Hi all,

I add a table to a document. The table has a cell which height is bigger
than the page's height. And I get the error: "Infinite Table Loop"
Is simply not possible to make a cell that is bigger than the page?
Or I'm missing something?

You find an example program and the result PDF in atteachment.

Thank you for yours suggestions.

-- Michele
package test;

import com.lowagie.text.pdf.PdfWriter;
import com.lowagie.text.DocumentException;
import com.lowagie.text.pdf.PdfPCell;
import com.lowagie.text.pdf.PdfPTable;
import java.io.IOException;
import com.lowagie.text.Document;
import java.io.FileOutputStream;
import com.lowagie.text.Paragraph;

public class PDFTest2 {

  public static void main(String[] args) {
    Document document = new Document();
    try {
      PdfWriter.getInstance(
        document,
        new FileOutputStream("pdf_test.pdf"));
      document.open();
      float[] widths = {1, 1};
      PdfPTable table = new PdfPTable(widths);
      PdfPCell cell = new PdfPCell(new Paragraph("TEST"));
      cell.setMinimumHeight(1000);
      document.add(table);
    }
    catch(DocumentException de) {
      System.err.println(de.getMessage());
    }
    catch(IOException ioe) {
      System.err.println(ioe.getMessage());
    }
    document.close();

  }

}

Attachment: pdf_test.pdf
Description: Adobe PDF document

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to