fhomasp wrote:
> The output document needs to be of a fixed height interval, depending on how
> much rows there are. 

So let's say the fixed interval is an inch,
then the height of the document needs to be a multiple of 72pt.

> I cannot just output on extra pages anytime i want. 

You need a single page document.

> If the document is smaller than the minimum size i have to fill it up with
> whitespace. 

"Filling up" with whitespace is non-sense.
You just leave the extra space empty.

> This fixed size is not absolute, there are several fixed sizes.

But for the sake of simplicity, we use the example of a fixed size of 72pt.

> So if I have a document that would be 15 cm, 

Why would the document be 15cm? Strange...

> then I need to look for the
> nearest fixed interval, add whitespace to and cut the document, to a
> maximum.

15 cm equals 5.91 inch, so you need to create a document of 6 inch,
which is the nearest multiple of 72pt.

Note that this is the first time you mention a "maximum".
A maximum of what?

>  If that maximum is reached I can't just use a page nr 2,

You need a single page PDF, but... now you're introducing a new 
requirement: the document needs to be a multiple of some interval, but 
there's also a maximum. Let's say 10 inch.

> I have to
> build a new PDF document using the remaining data.

Correction: you need to create multiple single page PDFs.
These PDFs have to be a multiple of 1 inch with a maximum of 10 inch.

>  However my testcase is
> very much simplified, and that's because those intervals are irrelevant.

Your testcase uses tables and that may be irrelevant for your requirement.

>  I
> just try to cut the document to the same size as the table in a way that the
> document is of the same size as the table.

Which is just silly.

> So Table(Rectangle).size == Document(Rectangle).size  

Bad design.

> And why shouldn't I use PdfPTable?  Your book has several chapters dedicated
> to PdfPTable.  I don't understand...

The book also has several chapters about annotations, does that mean you 
should use annotations? No. For the same reason, you probably don't need 
PdfPTable. Why would you use a table if you only have 1 column?

> At least thanks for reading ... :-s

I've had a discussion with Bob Van Rompuy about iText a while ago. Maybe 
I should use this example to show that RD could really use more iText 
expertise.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to