Merge pull request #609 from aurimasv/retrieve-meta-max-pages

Allow MAX_PAGES (for retrieving metadata) to be user-adjustable
This commit is contained in:
Dan Stillman 2015-01-21 01:01:47 -05:00
commit 55d84bcbf3

View file

@ -70,7 +70,7 @@ var Zotero_RecognizePDF = new function() {
* @return {Promise} A promise resolved when PDF metadata has been retrieved
*/
this.recognize = function(file, libraryID, stopCheckCallback) {
const MAX_PAGES = 7;
const MAX_PAGES = 15;
var me = this;
return _extractText(file, MAX_PAGES).then(function(lines) {