|
|
@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {})); |
|
|
|
// Use strict in our context only - users might not want it
|
|
|
|
// Use strict in our context only - users might not want it
|
|
|
|
'use strict'; |
|
|
|
'use strict'; |
|
|
|
|
|
|
|
|
|
|
|
var pdfjsVersion = '1.5.397'; |
|
|
|
var pdfjsVersion = '1.5.399'; |
|
|
|
var pdfjsBuild = 'fb6fde9'; |
|
|
|
var pdfjsBuild = 'f520616'; |
|
|
|
|
|
|
|
|
|
|
|
var pdfjsFilePath = |
|
|
|
var pdfjsFilePath = |
|
|
|
typeof document !== 'undefined' && document.currentScript ? |
|
|
|
typeof document !== 'undefined' && document.currentScript ? |
|
|
@ -48451,6 +48451,7 @@ var warn = sharedUtil.warn; |
|
|
|
var Dict = corePrimitives.Dict; |
|
|
|
var Dict = corePrimitives.Dict; |
|
|
|
var isDict = corePrimitives.isDict; |
|
|
|
var isDict = corePrimitives.isDict; |
|
|
|
var isName = corePrimitives.isName; |
|
|
|
var isName = corePrimitives.isName; |
|
|
|
|
|
|
|
var isRef = corePrimitives.isRef; |
|
|
|
var Stream = coreStream.Stream; |
|
|
|
var Stream = coreStream.Stream; |
|
|
|
var ColorSpace = coreColorSpace.ColorSpace; |
|
|
|
var ColorSpace = coreColorSpace.ColorSpace; |
|
|
|
var ObjectLoader = coreObj.ObjectLoader; |
|
|
|
var ObjectLoader = coreObj.ObjectLoader; |
|
|
@ -48468,11 +48469,14 @@ AnnotationFactory.prototype = /** @lends AnnotationFactory.prototype */ { |
|
|
|
* @param {Object} ref |
|
|
|
* @param {Object} ref |
|
|
|
* @returns {Annotation} |
|
|
|
* @returns {Annotation} |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
create: function AnnotationFactory_create(xref, ref) { |
|
|
|
create: function AnnotationFactory_create(xref, ref, |
|
|
|
|
|
|
|
uniquePrefix, idCounters) { |
|
|
|
var dict = xref.fetchIfRef(ref); |
|
|
|
var dict = xref.fetchIfRef(ref); |
|
|
|
if (!isDict(dict)) { |
|
|
|
if (!isDict(dict)) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
var id = isRef(ref) ? ref.toString() : |
|
|
|
|
|
|
|
'annot_' + (uniquePrefix || '') + (++idCounters.obj); |
|
|
|
|
|
|
|
|
|
|
|
// Determine the annotation's subtype.
|
|
|
|
// Determine the annotation's subtype.
|
|
|
|
var subtype = dict.get('Subtype'); |
|
|
|
var subtype = dict.get('Subtype'); |
|
|
@ -48482,8 +48486,9 @@ AnnotationFactory.prototype = /** @lends AnnotationFactory.prototype */ { |
|
|
|
var parameters = { |
|
|
|
var parameters = { |
|
|
|
xref: xref, |
|
|
|
xref: xref, |
|
|
|
dict: dict, |
|
|
|
dict: dict, |
|
|
|
ref: ref, |
|
|
|
ref: isRef(ref) ? ref : null, |
|
|
|
subtype: subtype, |
|
|
|
subtype: subtype, |
|
|
|
|
|
|
|
id: id, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
switch (subtype) { |
|
|
|
switch (subtype) { |
|
|
@ -48587,7 +48592,7 @@ var Annotation = (function AnnotationClosure() { |
|
|
|
|
|
|
|
|
|
|
|
// Expose public properties using a data object.
|
|
|
|
// Expose public properties using a data object.
|
|
|
|
this.data = {}; |
|
|
|
this.data = {}; |
|
|
|
this.data.id = params.ref.toString(); |
|
|
|
this.data.id = params.id; |
|
|
|
this.data.subtype = params.subtype; |
|
|
|
this.data.subtype = params.subtype; |
|
|
|
this.data.annotationFlags = this.flags; |
|
|
|
this.data.annotationFlags = this.flags; |
|
|
|
this.data.rect = this.rectangle; |
|
|
|
this.data.rect = this.rectangle; |
|
|
@ -49406,6 +49411,7 @@ var Page = (function PageClosure() { |
|
|
|
this.xref = xref; |
|
|
|
this.xref = xref; |
|
|
|
this.ref = ref; |
|
|
|
this.ref = ref; |
|
|
|
this.fontCache = fontCache; |
|
|
|
this.fontCache = fontCache; |
|
|
|
|
|
|
|
this.uniquePrefix = 'p' + this.pageIndex + '_'; |
|
|
|
this.idCounters = { |
|
|
|
this.idCounters = { |
|
|
|
obj: 0 |
|
|
|
obj: 0 |
|
|
|
}; |
|
|
|
}; |
|
|
@ -49553,7 +49559,7 @@ var Page = (function PageClosure() { |
|
|
|
|
|
|
|
|
|
|
|
var partialEvaluator = new PartialEvaluator(pdfManager, this.xref, |
|
|
|
var partialEvaluator = new PartialEvaluator(pdfManager, this.xref, |
|
|
|
handler, this.pageIndex, |
|
|
|
handler, this.pageIndex, |
|
|
|
'p' + this.pageIndex + '_', |
|
|
|
this.uniquePrefix, |
|
|
|
this.idCounters, |
|
|
|
this.idCounters, |
|
|
|
this.fontCache, |
|
|
|
this.fontCache, |
|
|
|
this.evaluatorOptions); |
|
|
|
this.evaluatorOptions); |
|
|
@ -49620,7 +49626,7 @@ var Page = (function PageClosure() { |
|
|
|
var contentStream = data[0]; |
|
|
|
var contentStream = data[0]; |
|
|
|
var partialEvaluator = new PartialEvaluator(pdfManager, self.xref, |
|
|
|
var partialEvaluator = new PartialEvaluator(pdfManager, self.xref, |
|
|
|
handler, self.pageIndex, |
|
|
|
handler, self.pageIndex, |
|
|
|
'p' + self.pageIndex + '_', |
|
|
|
self.uniquePrefix, |
|
|
|
self.idCounters, |
|
|
|
self.idCounters, |
|
|
|
self.fontCache, |
|
|
|
self.fontCache, |
|
|
|
self.evaluatorOptions); |
|
|
|
self.evaluatorOptions); |
|
|
@ -49655,7 +49661,9 @@ var Page = (function PageClosure() { |
|
|
|
var annotationFactory = new AnnotationFactory(); |
|
|
|
var annotationFactory = new AnnotationFactory(); |
|
|
|
for (var i = 0, n = annotationRefs.length; i < n; ++i) { |
|
|
|
for (var i = 0, n = annotationRefs.length; i < n; ++i) { |
|
|
|
var annotationRef = annotationRefs[i]; |
|
|
|
var annotationRef = annotationRefs[i]; |
|
|
|
var annotation = annotationFactory.create(this.xref, annotationRef); |
|
|
|
var annotation = annotationFactory.create(this.xref, annotationRef, |
|
|
|
|
|
|
|
this.uniquePrefix, |
|
|
|
|
|
|
|
this.idCounters); |
|
|
|
if (annotation) { |
|
|
|
if (annotation) { |
|
|
|
annotations.push(annotation); |
|
|
|
annotations.push(annotation); |
|
|
|
} |
|
|
|
} |
|
|
|