Hi guy,

I got a little problem with the following code. I want to put an internal link in a 
table but it seems to be impossible.
In fact, the internal reference seems to work as an external link
If I do the same code with a link outside the table (directly in the document), it 
works but I must put my link in a table

Here the code :
Anchor[] anchor_ref = new Anchor[50];
Anchor[] anchor_set = new Anchor[50];
int iAnchor = 0;
Table table;
Paragraph p;

p = new Paragraph("");
anchor_set[40] = new Anchor(new Chunk("This is an internal link", new 
Font(Font.HELVETICA, 16, Font.BOLD)));
anchor_set[40].setName("link1");
anchor_ref[40] = new Anchor(new Chunk("Click here to jump to the internal link", new 
Font(Font.HELVETICA, 10, Font.BOLD)));
anchor_ref[40].setReference("#link1"); 

p.add(anchor_set[40]);
p.add(anchor_ref[40]);
table = new Table(2);
table.addCell(new Cell(p));
document.add(table);


Is it a bug or a future evolution for your library ? ;)
        ,Ben

PS : Your library is very efficient... very good job


_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to