Commit 3f30e694 authored by csillag's avatar csillag

Update Annotator PDF plugin to 0bc62e04 (pdf-update-1.0.712 branch)

This update brings support for PDF.js v1.0.712, and thus FF32.
Closes #1592.
parent 364dfdf2
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
** Dual licensed under the MIT and GPLv3 licenses. ** Dual licensed under the MIT and GPLv3 licenses.
** https://github.com/okfn/annotator/blob/master/LICENSE ** https://github.com/okfn/annotator/blob/master/LICENSE
** **
** Built at: 2014-10-23 22:40:29Z ** Built at: 2014-10-25 11:58:09Z
*/ */
...@@ -141,9 +141,10 @@ ...@@ -141,9 +141,10 @@
}; };
PDFTextMapper.prototype._extractPageText = function(pageIndex) { PDFTextMapper.prototype._extractPageText = function(pageIndex) {
var page, var page, pageSource, _ref,
_this = this; _this = this;
page = PDFFindController.pdfPageSource.pages[pageIndex]; pageSource = (_ref = PDFFindController.pdfPageSource) != null ? _ref : PDFView.findController.pdfPageSource;
page = pageSource.pages[pageIndex];
if ((page != null ? page.pdfPage : void 0) == null) { if ((page != null ? page.pdfPage : void 0) == null) {
setTimeout((function() { setTimeout((function() {
return _this._extractPageText(pageIndex); return _this._extractPageText(pageIndex);
...@@ -151,8 +152,8 @@ ...@@ -151,8 +152,8 @@
return; return;
} }
return page.getTextContent().then(function(data) { return page.getTextContent().then(function(data) {
var content, rawContent, text, textData, _ref, _ref1; var content, rawContent, text, textData, _ref1, _ref2;
textData = (_ref = (_ref1 = data.bidiTexts) != null ? _ref1 : data.items) != null ? _ref : data; textData = (_ref1 = (_ref2 = data.bidiTexts) != null ? _ref2 : data.items) != null ? _ref1 : data;
rawContent = ((function() { rawContent = ((function() {
var _i, _len, _results; var _i, _len, _results;
_results = []; _results = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment