Skip to content

API pdfLinkService._cachedPageNumber Broken in Firefox 127.0.X #5

@Nipaleme

Description

@Nipaleme

When trying the bookmark on version 127.0.2 in Firefox got this error:

Uncaught (in promise) TypeError: app.pdfLinkService._cachedPageNumber is not a function

Due to the line :

const pageNumber = app.pdfLinkService._cachedPageNumber(explicitDest[0]);

After some investigation, I found out that the API might have changed. I managed to make it work by changing it to :

const pageNumber = app.pdfDocument.cachedPageNumber(explicitDest[0]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions