Browse Source

PDF.js version 1.5.399 - See mozilla/pdf.js@f520616e0018827148336c3048a0599dd2a915af

master v1.5.399
Pdf Bot 9 years ago
parent
commit
655ddfdf84
  1. 2
      bower.json
  2. 24
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 24
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

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

24
build/pdf.combined.js

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

4
build/pdf.js

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {})); @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {}));
// Use strict in our context only - users might not want it
'use strict';
var pdfjsVersion = '1.5.397';
var pdfjsBuild = 'fb6fde9';
var pdfjsVersion = '1.5.399';
var pdfjsBuild = 'f520616';
var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ?

24
build/pdf.worker.js vendored

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {})); @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {}));
// Use strict in our context only - users might not want it
'use strict';
var pdfjsVersion = '1.5.397';
var pdfjsBuild = 'fb6fde9';
var pdfjsVersion = '1.5.399';
var pdfjsBuild = 'f520616';
var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ?
@ -40096,6 +40096,7 @@ var warn = sharedUtil.warn; @@ -40096,6 +40096,7 @@ var warn = sharedUtil.warn;
var Dict = corePrimitives.Dict;
var isDict = corePrimitives.isDict;
var isName = corePrimitives.isName;
var isRef = corePrimitives.isRef;
var Stream = coreStream.Stream;
var ColorSpace = coreColorSpace.ColorSpace;
var ObjectLoader = coreObj.ObjectLoader;
@ -40113,11 +40114,14 @@ AnnotationFactory.prototype = /** @lends AnnotationFactory.prototype */ { @@ -40113,11 +40114,14 @@ AnnotationFactory.prototype = /** @lends AnnotationFactory.prototype */ {
* @param {Object} ref
* @returns {Annotation}
*/
create: function AnnotationFactory_create(xref, ref) {
create: function AnnotationFactory_create(xref, ref,
uniquePrefix, idCounters) {
var dict = xref.fetchIfRef(ref);
if (!isDict(dict)) {
return;
}
var id = isRef(ref) ? ref.toString() :
'annot_' + (uniquePrefix || '') + (++idCounters.obj);
// Determine the annotation's subtype.
var subtype = dict.get('Subtype');
@ -40127,8 +40131,9 @@ AnnotationFactory.prototype = /** @lends AnnotationFactory.prototype */ { @@ -40127,8 +40131,9 @@ AnnotationFactory.prototype = /** @lends AnnotationFactory.prototype */ {
var parameters = {
xref: xref,
dict: dict,
ref: ref,
ref: isRef(ref) ? ref : null,
subtype: subtype,
id: id,
};
switch (subtype) {
@ -40232,7 +40237,7 @@ var Annotation = (function AnnotationClosure() { @@ -40232,7 +40237,7 @@ var Annotation = (function AnnotationClosure() {
// Expose public properties using a data object.
this.data = {};
this.data.id = params.ref.toString();
this.data.id = params.id;
this.data.subtype = params.subtype;
this.data.annotationFlags = this.flags;
this.data.rect = this.rectangle;
@ -41051,6 +41056,7 @@ var Page = (function PageClosure() { @@ -41051,6 +41056,7 @@ var Page = (function PageClosure() {
this.xref = xref;
this.ref = ref;
this.fontCache = fontCache;
this.uniquePrefix = 'p' + this.pageIndex + '_';
this.idCounters = {
obj: 0
};
@ -41198,7 +41204,7 @@ var Page = (function PageClosure() { @@ -41198,7 +41204,7 @@ var Page = (function PageClosure() {
var partialEvaluator = new PartialEvaluator(pdfManager, this.xref,
handler, this.pageIndex,
'p' + this.pageIndex + '_',
this.uniquePrefix,
this.idCounters,
this.fontCache,
this.evaluatorOptions);
@ -41265,7 +41271,7 @@ var Page = (function PageClosure() { @@ -41265,7 +41271,7 @@ var Page = (function PageClosure() {
var contentStream = data[0];
var partialEvaluator = new PartialEvaluator(pdfManager, self.xref,
handler, self.pageIndex,
'p' + self.pageIndex + '_',
self.uniquePrefix,
self.idCounters,
self.fontCache,
self.evaluatorOptions);
@ -41300,7 +41306,9 @@ var Page = (function PageClosure() { @@ -41300,7 +41306,9 @@ var Page = (function PageClosure() {
var annotationFactory = new AnnotationFactory();
for (var i = 0, n = annotationRefs.length; i < n; ++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) {
annotations.push(annotation);
}

2
package.json

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

Loading…
Cancel
Save