Contents break pages in pdf
- From: Fer <aguatuerta (at) yahoo.es>
- Date: Thu, 18 May 2006 11:46:24 +0000 (UTC)
bruno <bruno <at> lowagie.com> writes:
>
> Fer wrote:
>
> >Hello, I have a simple but big problem.
> >I create a pdf document, and add contents (for example 2 tables, and
> >paragraph). If first content (table1) uses all of page 1 and part of page
2,
> >then, next contents always begins in a new page.
> >How can i solve this problem?
> >
> >
> If a problem can't be reproduced by us,
> it's not a problem. I repeat the remark I have added
> to my previous answer (check the mailing list archives):
> I'm starting to get really annoyed by the increasing number of
> fake (if not fake, completely undocumented) questions on this list.
> 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
>
Hello, Bruno, I have a servlet with this simple code is this . Can you verify
it?
Document doc = new Document();
response.setContentType("application/pdf");
try {
PdfWriter.getInstance(doc, response.getOutputStream());
doc.open();
Table table = new Table(2);
for (int i=0;i < 110; i++) {
Cell cell = new Cell("item " + i);
table.addCell(cell);
}
doc.add(table);
doc.add(new Phrase("This comment appears in new page, and must appear
under table.ÂHow can i solve this?Is a bug or I'm doing something wrong?"));
}
catch (IOException ex) {
ex.printStackTrace();
System.err.println("document: " + ex.getMessage());
}catch (DocumentException ex) {
ex.printStackTrace();
System.err.println ("document: " + ex.getMessage());
}
doc.close();
-------------------------------------------------------
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
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions