Browse Source

PDF.js version 1.7.357 - See mozilla/pdf.js@fc5810c97ad4b2a0c247c8a0e77154c2561077ee

master v1.7.357
pdfjsbot 8 years ago
parent
commit
69bca592e2
  1. 2
      bower.json
  2. 15
      build/pdf.combined.js
  3. 12
      build/pdf.js
  4. 4
      build/pdf.min.js
  5. 7
      build/pdf.worker.js
  6. 2
      build/pdf.worker.min.js
  7. 3
      lib/core/annotation.js
  8. 4
      lib/display/api.js
  9. 4
      lib/display/global.js
  10. 4
      lib/pdf.js
  11. 4
      lib/pdf.worker.js
  12. 16
      lib/test/unit/annotation_spec.js
  13. 2
      package.json

2
bower.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.7.355", "version": "1.7.357",
"main": [ "main": [
"build/pdf.js", "build/pdf.js",
"build/pdf.worker.js" "build/pdf.worker.js"

15
build/pdf.combined.js

@ -20022,8 +20022,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
} }
}; };
}(); }();
exports.version = '1.7.355'; exports.version = '1.7.357';
exports.build = '6908f149'; exports.build = 'fc5810c9';
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.PDFDataRangeTransport = PDFDataRangeTransport; exports.PDFDataRangeTransport = PDFDataRangeTransport;
exports.PDFWorker = PDFWorker; exports.PDFWorker = PDFWorker;
@ -38777,8 +38777,8 @@ if (!globalScope.PDFJS) {
globalScope.PDFJS = {}; globalScope.PDFJS = {};
} }
var PDFJS = globalScope.PDFJS; var PDFJS = globalScope.PDFJS;
PDFJS.version = '1.7.355'; PDFJS.version = '1.7.357';
PDFJS.build = '6908f149'; PDFJS.build = 'fc5810c9';
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {
sharedUtil.setVerbosityLevel(PDFJS.verbosity); sharedUtil.setVerbosityLevel(PDFJS.verbosity);
@ -39316,6 +39316,9 @@ var WidgetAnnotation = function WidgetAnnotationClosure() {
var loopDict = dict; var loopDict = dict;
while (loopDict.has('Parent')) { while (loopDict.has('Parent')) {
loopDict = loopDict.get('Parent'); loopDict = loopDict.get('Parent');
if (!isDict(loopDict)) {
break;
}
if (loopDict.has('T')) { if (loopDict.has('T')) {
fieldName.unshift(stringToPDFString(loopDict.get('T'))); fieldName.unshift(stringToPDFString(loopDict.get('T')));
} }
@ -57884,8 +57887,8 @@ if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) {
"use strict"; "use strict";
var pdfjsVersion = '1.7.355'; var pdfjsVersion = '1.7.357';
var pdfjsBuild = '6908f149'; var pdfjsBuild = 'fc5810c9';
var pdfjsSharedUtil = __w_pdfjs_require__(0); var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(26); var pdfjsDisplayGlobal = __w_pdfjs_require__(26);
var pdfjsDisplayAPI = __w_pdfjs_require__(10); var pdfjsDisplayAPI = __w_pdfjs_require__(10);

12
build/pdf.js

@ -3735,8 +3735,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
} }
}; };
}(); }();
exports.version = '1.7.355'; exports.version = '1.7.357';
exports.build = '6908f149'; exports.build = 'fc5810c9';
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.PDFDataRangeTransport = PDFDataRangeTransport; exports.PDFDataRangeTransport = PDFDataRangeTransport;
exports.PDFWorker = PDFWorker; exports.PDFWorker = PDFWorker;
@ -5768,8 +5768,8 @@ if (!globalScope.PDFJS) {
globalScope.PDFJS = {}; globalScope.PDFJS = {};
} }
var PDFJS = globalScope.PDFJS; var PDFJS = globalScope.PDFJS;
PDFJS.version = '1.7.355'; PDFJS.version = '1.7.357';
PDFJS.build = '6908f149'; PDFJS.build = 'fc5810c9';
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {
sharedUtil.setVerbosityLevel(PDFJS.verbosity); sharedUtil.setVerbosityLevel(PDFJS.verbosity);
@ -9855,8 +9855,8 @@ if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) {
"use strict"; "use strict";
var pdfjsVersion = '1.7.355'; var pdfjsVersion = '1.7.357';
var pdfjsBuild = '6908f149'; var pdfjsBuild = 'fc5810c9';
var pdfjsSharedUtil = __w_pdfjs_require__(0); var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(9); var pdfjsDisplayGlobal = __w_pdfjs_require__(9);
var pdfjsDisplayAPI = __w_pdfjs_require__(3); var pdfjsDisplayAPI = __w_pdfjs_require__(3);

4
build/pdf.min.js vendored

File diff suppressed because one or more lines are too long

7
build/pdf.worker.js vendored

@ -35552,6 +35552,9 @@ var WidgetAnnotation = function WidgetAnnotationClosure() {
var loopDict = dict; var loopDict = dict;
while (loopDict.has('Parent')) { while (loopDict.has('Parent')) {
loopDict = loopDict.get('Parent'); loopDict = loopDict.get('Parent');
if (!isDict(loopDict)) {
break;
}
if (loopDict.has('T')) { if (loopDict.has('T')) {
fieldName.unshift(stringToPDFString(loopDict.get('T'))); fieldName.unshift(stringToPDFString(loopDict.get('T')));
} }
@ -51072,8 +51075,8 @@ if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) {
"use strict"; "use strict";
var pdfjsVersion = '1.7.355'; var pdfjsVersion = '1.7.357';
var pdfjsBuild = '6908f149'; var pdfjsBuild = 'fc5810c9';
var pdfjsCoreWorker = __w_pdfjs_require__(8); var pdfjsCoreWorker = __w_pdfjs_require__(8);
{ {
__w_pdfjs_require__(19); __w_pdfjs_require__(19);

2
build/pdf.worker.min.js vendored

File diff suppressed because one or more lines are too long

3
lib/core/annotation.js

@ -439,6 +439,9 @@ var WidgetAnnotation = function WidgetAnnotationClosure() {
var loopDict = dict; var loopDict = dict;
while (loopDict.has('Parent')) { while (loopDict.has('Parent')) {
loopDict = loopDict.get('Parent'); loopDict = loopDict.get('Parent');
if (!isDict(loopDict)) {
break;
}
if (loopDict.has('T')) { if (loopDict.has('T')) {
fieldName.unshift(stringToPDFString(loopDict.get('T'))); fieldName.unshift(stringToPDFString(loopDict.get('T')));
} }

4
lib/display/api.js

@ -1374,8 +1374,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
} }
}; };
}(); }();
exports.version = '1.7.355'; exports.version = '1.7.357';
exports.build = '6908f149'; exports.build = 'fc5810c9';
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.PDFDataRangeTransport = PDFDataRangeTransport; exports.PDFDataRangeTransport = PDFDataRangeTransport;
exports.PDFWorker = PDFWorker; exports.PDFWorker = PDFWorker;

4
lib/display/global.js

@ -30,8 +30,8 @@ if (!globalScope.PDFJS) {
globalScope.PDFJS = {}; globalScope.PDFJS = {};
} }
var PDFJS = globalScope.PDFJS; var PDFJS = globalScope.PDFJS;
PDFJS.version = '1.7.355'; PDFJS.version = '1.7.357';
PDFJS.build = '6908f149'; PDFJS.build = 'fc5810c9';
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {
sharedUtil.setVerbosityLevel(PDFJS.verbosity); sharedUtil.setVerbosityLevel(PDFJS.verbosity);

4
lib/pdf.js

@ -13,8 +13,8 @@
* limitations under the License. * limitations under the License.
*/ */
'use strict'; 'use strict';
var pdfjsVersion = '1.7.355'; var pdfjsVersion = '1.7.357';
var pdfjsBuild = '6908f149'; var pdfjsBuild = 'fc5810c9';
var pdfjsSharedUtil = require('./shared/util.js'); var pdfjsSharedUtil = require('./shared/util.js');
var pdfjsDisplayGlobal = require('./display/global.js'); var pdfjsDisplayGlobal = require('./display/global.js');
var pdfjsDisplayAPI = require('./display/api.js'); var pdfjsDisplayAPI = require('./display/api.js');

4
lib/pdf.worker.js vendored

@ -13,8 +13,8 @@
* limitations under the License. * limitations under the License.
*/ */
'use strict'; 'use strict';
var pdfjsVersion = '1.7.355'; var pdfjsVersion = '1.7.357';
var pdfjsBuild = '6908f149'; var pdfjsBuild = 'fc5810c9';
var pdfjsCoreWorker = require('./core/worker.js'); var pdfjsCoreWorker = require('./core/worker.js');
{ {
require('./core/network.js'); require('./core/network.js');

16
lib/test/unit/annotation_spec.js

@ -714,6 +714,22 @@ describe('annotation', function () {
expect(data.annotationType).toEqual(AnnotationType.WIDGET); expect(data.annotationType).toEqual(AnnotationType.WIDGET);
expect(data.fieldName).toEqual('foo.bar.baz'); expect(data.fieldName).toEqual('foo.bar.baz');
}); });
it('should construct the field name if a parent is not a dictionary ' + '(issue 8143)', function () {
var parentDict = new Dict();
parentDict.set('Parent', null);
parentDict.set('T', 'foo');
widgetDict.set('Parent', parentDict);
widgetDict.set('T', 'bar');
var widgetRef = new Ref(22, 0);
var xref = new XRefMock([{
ref: widgetRef,
data: widgetDict
}]);
var annotation = annotationFactory.create(xref, widgetRef, pdfManagerMock, idFactoryMock);
var data = annotation.data;
expect(data.annotationType).toEqual(AnnotationType.WIDGET);
expect(data.fieldName).toEqual('foo.bar');
});
}); });
describe('TextWidgetAnnotation', function () { describe('TextWidgetAnnotation', function () {
var textWidgetDict; var textWidgetDict;

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.7.355", "version": "1.7.357",
"main": "build/pdf.js", "main": "build/pdf.js",
"description": "Generic build of Mozilla's PDF.js library.", "description": "Generic build of Mozilla's PDF.js library.",
"keywords": [ "keywords": [

Loading…
Cancel
Save