So I have a PDF with 190 pages, and have successfully placed 285 Named Destinations using
theDest = PdfDestination.CreateFitR(theDocument, tIdx, tL, tB, tR, tT)
theDocument.NamedDestinations.Add(theDest, theSheetNumber & "/" & theDetail)
These have been verified using BlueBeam REVU.
I now need to add 640 links, using (I think)
annot.Link.Action = New PdfGoToRAction(theDocument, fileSpec, dest)
The trick that I need to know (I think), is how to get the Name of the previously built Named Destination into dest.
I know how to do an annot.Link.Action = New PdfGoToRAction(theDocument, fileSpec, dest), that’s not what I’m looking for.
Presumably it is in the documentation, but I’ve spent a week and I can’t find it, so I’m not so sure it is.
Right now I've got:
theDocument2 = PdfDocument.Load(theInputPath & theSection & "\" & theNumberAndTitlePLACE & ".PDF")
Dim fileSpec As New PdfFileSpecification(theDocument2)
fileSpec.FileName = theNumberAndTitlePLACE & ".PDF"
theDest = PdfDestination.CreateFitR(theDocument2, 0, theBoxLeft, theBoxTop, theBoxRight, theBoxBottom)
AnnotX.Link.Action = New PdfGoToRAction(theDocument, fileSpec, theDest)
Page.Annots.Add(AnnotX)
theDocument2.Dispose()
Which is close, but it doesn't do an 'R' zoom.