Please examine the following simplified code:

          Paragraph tmppara = new Paragraph();
          Chunk extlink = new Chunk("https://www.displayed.url";,
basicfont);
          extlink.setAnchor("https://www.actualurl.com?something=this";);
          extlink.setUnderline(.1f, -1f);
          tmppara.add(extlink);


...'tmppara' is added to a table cell, and the table is added to a
Paragraph, then that Paragraph is added to the Document.

When I view the main document (PDF) and place the cursor over the link
produced above, I get a hand cursor with 'w' in it, showing the correct
anchor and if I click the mouse it opens the browser and goes to the
correct link.

But if I move the mouse pointer around carefully - usually just below
the anchor underline, a hand cursor appears without the 'w' displaying
only the text in the Chunk, as if this were a correct link, BUT IT IS
NOT. And if I click the mouse a browser will open, attempting to access
this text in the Chunk (www.displayed.url).

How do I get it to stop doing this?  Is this a bug?

This happens with both the Anchor object and the Chunk object
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to