In this example from iText in action, the internal link uses #the name.
Another approach would be to use Chunkboth for reference and for the recipient.
chunkDest.setLocalDesitination("foo");
...
chunkLink.setLocalGoto("foo"); // or "#foo"?
PdfDocument (localGoto localDestination) , , , ... ... , , .
, , ?
: . PDF . PdfDestination PdfAction TOC. - :
PdfDestination fitH = new PdfDestination(PdfDestination.FITH);
PdfAction link = PdfAction.gotoLocalPage(pageNum, fitH, writer);
chunk.setAction(link);
:
- PdfAction, .
- PdfDestination, , . YMMV.