From 4aebd7f30ef62d06184d9f3ee2b611b959a84dee Mon Sep 17 00:00:00 2001 From: qqobb <52924060+qqobb@users.noreply.github.com> Date: Mon, 10 May 2021 18:36:51 +0200 Subject: [PATCH] Use base-mapped `pages` for extracted annotations Fixes #530. --- chrome/content/zotfile/pdfAnnotations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotfile/pdfAnnotations.js b/chrome/content/zotfile/pdfAnnotations.js index a0fc8fca..127d2962 100644 --- a/chrome/content/zotfile/pdfAnnotations.js +++ b/chrome/content/zotfile/pdfAnnotations.js @@ -264,7 +264,7 @@ Zotero.ZotFile.pdfAnnotations = new function() { // get page if(this.getPref("pdfExtraction.NoteTruePage")) { try { - var itemPages = item.getField('pages'); + var itemPages = item.getField('pages', 1, 1); if(itemPages) { var page_parsed = typeof itemPages == "string" ? parseInt(itemPages.split('-')[0], 10) : itemPages; page = isNaN(page_parsed) ? page : page_parsed + page - 1;