Dirk Ulrich wrote:
> But that but would be nice, wouldn't it?

That's a matter of taste.
Based on experience, I don't agree.

> Is it possible to implement such a functionality in later versions of 
> iText or is it impossible at all?

I don't think this will ever be possible with PdfPTable.
It's present in class Table, and as you have read in the
book (p188) you can convert a Table to a PdfPTable,
but hardly anybody used it. As a matter of fact: it
was the addition of this functionality that broke class
Table. It had so many side-effects that we had to decide
no longer to support iText.
If you need this kind of functionality, it's probably
better to choose another design.

> When I add a PdfPCell to a PdfPTable: is it immediately written to the 
> PdfWriter 

Now how what that be possible?
You create a PdfPTable.
You create a PdfPCell.
You add the cell to the table.
How can these objects know to which writer you
want to add this construction? The table can only
be written to PdfWriter once you add the table to
the document, or use writeSelectedRows.

> or is it just a structure in memory so that it is basically 
> possible to access a PdfPCell already added to a PdfPTable?

It's a structure in memory, but there are many tricks
to free this memory; read chapter 6, among others p 181.

Before you claim that the fact that the structure is kept
in memory opens the path to changing the cells as asked
in your initial question: that would be a wrong assumption!
The main problems with class table were nested tables,
colspan and rowspan. The functionality you would gain is
not worth the problems you would raise. Believe me, I have
been there before.

best regards,
Bruno

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to