LinkAnnotation Destination PageNumber is always 0

Hi,

I notice in some PDF with LinkAnnotations pointing another page inside the document, the PageNumber property in LinkAnnotation.Destination attribute is always 0. Destination is implemented by XYZExplicitDestination.
Note the Action attribute is null.

How can I get the page pointed by the link annotation?

Here is a sample PDF to illustrate.
Uploading: PDFReference.pdf…

@tfipsrd

Would you please also share the sample code that you have been trying? We will test the scenario in our environment and address it accordingly.

Here is a sample code to illustrate.

    foreach (var annotationIn in pdfPage.Annotations)
    {
        if (annotationIn is LinkAnnotation link)
        {
            if (link.Destination != null && link.Destination is XYZExplicitDestination xyzDestination)
            {
                var pageNumber = xyzDestination.PageNumber; // always 0. Note link.Destination.Page is null
            }
        }
    }

@tfipsrd

We are unable to download the file you attached. Looks like it was not uploaded correctly. Can you please attach that again?

PDFReference.pdf (8.6 MB)

@tfipsrd

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-58993

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Hi,

Any feedback on this issue?

We encounter the issue, for example, with any PDF document containing a Table of Content generated from MS-Word. PageNumber is 0 in LinkAnnotation. Is there any information we missed to know the target page?

Note the links are working in Abode Acrobat.

Thanks

@tfipsrd

We are afraid that the earlier logged ticket hasn’t been yet resolved. It will be prioritized on a first come first serve basis and as soon as we make some progress towards its resolution, we will inform you. Shared information by you has been logged with the ticket and will surely be considered during the investigation. Please be patient and spare us some time.

We are sorry for the inconvenience.

Same with this document.
Tested with Aspose.PDF.Drawing 25.4
IPS10_QuickUserGuide_17P.pdf (1.3 MB)

@tfipsrd

Thanks for sharing more information. We have attached this file as well to the ticket and will investigate from this perspective. As soon as we make some progress, we will inform you. Please be patient and spare us some time.

We are sorry for inconvenience.