Link Annotation are not clickable (PDFTron for Windows / C#)


i am using Pdf-Tron in a WPF-Application (PDFViewWpf) with C# and i am having trouble to get link annotations (goto page) working.

I managed to write a minimal app, that shows a pdf document. But clicking the links does not trigger the goto action.

I am sure that the document contains valid links, because i can iterate over them and trigger their goto action programmatically.

I even added annotations programmatically by using the methods of the annotation sample:
They appear on the document, but are not clickable.

I was skimming through the api and the documentation for hours, but is not really helpful for me.
I am a beginner in developing wpf applications, btw. and may be i am missing a few concepts. I hope you can help me.

That is my minimal application:


<Window x:Class="WpfApplication1.MainWindow"
        Title="MainWindow" Height="350" Width="525">
            <pdf:PDFViewWPF x:Name="PdfViewer" />


namespace WpfApplication1
    public partial class MainWindow

        public const string PdfTronWindowsLicenseKey =
            "MY LICENSE KEY";
        public MainWindow()

            PDFViewCtrl viewCtrl = new PDFViewCtrl();

            PdfViewer.CurrentPagePresentationMode = PDFViewWPF.PagePresentationMode.e_single_continuous;
            PdfViewer.CurrentPageViewMode = PDFViewWPF.PageViewMode.e_fit_width;
            var doc = new PDFDoc("C:\\PATH\\TO\\PDF\\test.pdf");
            PdfViewer.CurrentDocument = doc;
            PdfViewer.UseURLExtraction = true;
            PdfViewer.DrawAnnotations = true;

        private static void InitializePdfTron()
            catch (Exception ex)

        private static void AnnotationHighLevelAPI(PDFDoc doc)
            // copy from annotation example
            // see:

All of the user interaction logic is in the PDFViewWPFTools project, for which there is an API and all the source code.

Please see the PDFViewSimpleTest SDK sample project, for a simplistic sample.

Essentially, add the PDFViewWPFTools project as a reference/dependency and then add

_toolManager = new ToolManager(PDFViewWPF);

to your project and that should give you the functionality that you need. See MainWindow.xaml.cs for more detail.

If you are still having issues, please confirm if our PDFViewSimpleTest sample project works for you or not.

Thank you very much Ryan!

It works now.