Product: Xamarin pdftron.iOS / Xamarin pdftron.iOS.Tools
Product Version: 9.2.0
Please give a brief summary of your issue:
I want to enable the pdf viewer to follow internal links on iOS within a Xamarin project
Please describe your issue and provide steps to reproduce it:
I have a xamarin project with targets iOS and UWP.
On both targets we provide a pdf viewer for our users. The new request by our customersis, that we are enabling link following in our pdf viewers. On windows, we set a tool manager to the viewer and that enabled link following out of the box.
So on Windows UWP it works, but not on iOS.
private ToolManager _toolManager; _toolManager = new ToolManager(_pdfViewCtrl);
Under iOS we set approx the same
_toolManager = new PTToolManager(pdfView); _toolManager.LinkFollowingEnabled = true; _toolManager.ShouldHandleLinkAnnotation = new ShouldHandleLinkAnnotation(((manager, annotation, info, number) => true));
The links are existing, when I loop through the annotations, but every link will be evaluated with link.isValid() = false, don’t know why. When I open the pdf in the Macs integrated preview app or Adobe PDF reader, the internal links are working and jumping correctly.