I don't know about PDF table cells in particular, but I have found  
this quirk of iText. If you construct an element passing in an Anchor  
object in the constructor, you don't get a link (it just adds the  
CONTENT of the anchor, not the anchor itself.) If you construct an  
element using the default constructor, then add an Anchor, it works as  
you expect.

For example, given:
Anchor a = new Anchor("something");
a.setReference("http://something";);


This doesn't produce a working link:
ListItem foo = new ListItem(a);


but this does:
ListItem foo = new ListItem();
foo.add(a);


This behavior seems to be because Anchor is a subclass of Phrase, and  
the constructors of other Phrase subclasses attempt to flatten their  
contents by adding the contents of child Phrases rather than adding  
the Phrase itself.


Kris Raney
[EMAIL PROTECTED]



-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
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