Hi folks
I'm using iText in a quite straightforward fashion: I have a middleware
class that receives simple calls to add content to my PDF document.
So it's basically add paragraph, add table, add cell, and so on. I keep
track of every table created and add all contents to it before it is
added to the PDF -- it happens whenever a paragraph or the end of the
file are requested.
In this document, contrary to most cases, I have many small tables. No
huge ones that span many pages; usually I have several tables in one
page.
Therefore it is nonsense to have tables breaking on page breaks, since
I want them to be whole whenever possible.
But using Document and PdfPTable I just can't make it, and otherwise
would make me redo the whole thing from scratch.
Anybody have any clues?
|
|
0
|
|
|
|
Reply
|
somatando (1)
|
4/7/2005 2:08:55 PM |
|
Hey, just to end the thread with a solution.
I got the fix from Paulo Soares himself: put the small table inside
another 1x1 table. This one cell won't break with setSplitRows(false).
Thanks anyway, guys
|
|
0
|
|
|
|
Reply
|
somatando
|
4/11/2005 3:02:39 PM
|
|