diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 7a6357ebc5..c667d940ef 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -4284,7 +4284,19 @@ var ZoteroPane = new function() ); return; } + // Try to open external reader to page number if specified + else { + let pageIndex = extraData?.location?.position?.pageIndex; + if (pageIndex !== undefined) { + await Zotero.OpenPDF.openToPage( + item, + parseInt(pageIndex) + 1 + ); + return; + } + } // Custom PDF handler + // TODO: Remove this and unify with Zotero.OpenPDF if (pdfHandler != 'system') { try { if (await OS.File.exists(pdfHandler)) {