Hi.

I am trying (and failing) to add an internal destination anchor to an existing 
PDF page so would be grateful for any help. I’m using iTextSharp (VB code so no 
semi-colons...).

I’ve tried:

Dim myAnchor As Anchor = New Anchor(anchorlink, Ar9FONT)
myAnchor .Name = anchorlink
col.SetSimpleColumn(myAnchor , left, bottom, right, top, 10, Element.ALIGN_LEFT)
col.Go()

But while the text of what I want to be the anchor is added to the page (i.e. 
the string ‘anchorlink’), it’s not acting as a destination when I click on a 
hyperlink in the PDF which goes to that location. 

If I try adding a link rather than a destination with .Reference such as: 

Dim myAnchor As Anchor = New Anchor(anchorlink, Ar9FONT)
myAnchor.Reference = "http://www.google.com/";
col.SetSimpleColumn(myAnchor, left, bottom, right, top, 10, Element.ALIGN_LEFT)
col.Go()

It works and the text is a clickable hyperlink. So SetSimpleColumn(myAnchor...) 
add anchors OK but maybe I am missing something regarding getting it to work 
with an internal destination? 

Thank you in advance for your time and assistance.

Jay
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to