From ff93acd5f52132ef692c00aded0b100aa046be75 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 21 Feb 2011 09:04:49 +0000 Subject: [PATCH] Fixes #957, PDFs with extended characters aren't indexed Now fixed for real. Required a function change on our end. --- chrome/content/zotero/xpcom/fulltext.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/fulltext.js b/chrome/content/zotero/xpcom/fulltext.js index 70ad0d6e5e..f9923a039c 100644 --- a/chrome/content/zotero/xpcom/fulltext.js +++ b/chrome/content/zotero/xpcom/fulltext.js @@ -429,7 +429,12 @@ Zotero.Fulltext = new function(){ var args = [file.path, infoFile.path]; try { - proc.run(true, args, args.length); + if (!Zotero.isFx36) { + proc.runw(true, args, args.length); + } + else { + proc.run(true, args, args.length); + } var totalPages = this.getTotalPagesFromFile(itemID); } catch (e) { @@ -460,7 +465,12 @@ Zotero.Fulltext = new function(){ } args.push(file.path, cacheFile.path); try { - proc.run(true, args, args.length); + if (!Zotero.isFx36) { + proc.runw(true, args, args.length); + } + else { + proc.run(true, args, args.length); + } } catch (e) { Zotero.debug("Error running pdftotext");