commit ff93acd5f52132ef692c00aded0b100aa046be75
parent be2e5d680f2a998134e607fd4e39d2510a1f5e01
Author: Dan Stillman <dstillman@zotero.org>
Date: Mon, 21 Feb 2011 09:04:49 +0000
Fixes #957, PDFs with extended characters aren't indexed
Now fixed for real. Required a function change on our end.
Diffstat:
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git 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");