From f1aa6c5c80a093d4a58b20216a473b469aeddd55 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 18 Mar 2016 04:51:32 -0400 Subject: [PATCH] Fix indexing of PDFs imported from current document --- chrome/content/zotero/xpcom/attachments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index 24ddfedbb..2881f4605 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -672,7 +672,7 @@ Zotero.Attachments = new function(){ // We'll index it later if it fails. (This may not be necessary.) if (contentType == 'application/pdf') { setTimeout(function () { - Zotero.Fulltext.indexPDF(file.path, attachmentItem.id); + Zotero.Fulltext.indexPDF(attachmentItem.getFilePath(), attachmentItem.id); }, 1000); } else if (Zotero.MIME.isTextType(contentType)) {