Quoting "Ricky M. Codizar" <[EMAIL PROTECTED]>: > Hi! > > Just a bit of curiosity about the Anchor class. In the sample code below: > > Anchor anchor = new Anchor("this is a link"); > anchor.setName("LINK"); > anchor.setReference("http://www.lowagie.com"); > > What does the setName() method really do? I tried the sample code above and > on my pdf document it displays "this is a link" > and when you click the text, the reference "http://www.lowagie.com" works. > Does the method setName() only sets the internal > name and not for displaying on the document?
NAME can be used to set a local destination. In HTML: <A NAME="DESTINATION">dest</A> You can jump to the position of dest like this: <A HREF="#DESTINATION"> The same is possible in PDF. With a localGoto, you can jump to a local destination. Bruno ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions