Hi,
   I have already searched archive and could not able to find an answer to this 
question. Basically I want add some anchors in pages that would point to named 
Chapter/Section.

At present I am trying

Chunk chunk = new Chunk(sectionTitle,FontFactory.getFont("Arial Narrow"));

Anchor sectionRef = new Anchor(chunk);
sectionRef.setName("Secref");
Section section = chapter.addSection(new Paragraph(sectionRef));
section.setBookmarkTitle(sectionTitle);
....
....
And wanted to access this section is some page by

Anchor toReference = new Anchor(sectionTitle);
toReference.setReference("#Secref");
titlparagraph.add(toReference);

Now this paragraph is a link but clicking on this does not go anywhere.
Am I doing anything wrong?

- RB


      

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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

Reply via email to