PDFRefPreview icon indicating copy to clipboard operation
PDFRefPreview copied to clipboard

API pdfLinkService._cachedPageNumber Broken in Firefox 127.0.X

Open Nipaleme opened this issue 1 year ago • 0 comments

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]);

Nipaleme avatar Jul 02 '24 13:07 Nipaleme