From 0870ee1b87dffc6e416cf6bd9022353863513573 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Mon, 22 Sep 2014 16:26:09 -0500 Subject: [PATCH] PDF.js version 1.0.336 --- bower.json | 2 +- build/pdf.combined.js | 13 ++++++++----- build/pdf.js | 13 ++++++++----- build/pdf.worker.js | 13 ++++++++----- package.json | 2 +- 5 files changed, 26 insertions(+), 17 deletions(-) diff --git a/bower.json b/bower.json index 9c719a697..92ad43d5b 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.334", + "version": "1.0.336", "keywords": [ "Mozilla", "pdf", diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 4639b3e55..a027cc83a 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.334'; -PDFJS.build = '75859b8'; +PDFJS.version = '1.0.336'; +PDFJS.build = 'b37b338'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -1724,7 +1724,7 @@ var Annotation = (function AnnotationClosure() { data && (!data.annotationFlags || !(data.annotationFlags & 0x22)) && // Hidden or NoView - data.rect); // rectangle is nessessary + data.rect); // rectangle is necessary }, isPrintable: function Annotation_isPrintable() { @@ -1733,7 +1733,8 @@ var Annotation = (function AnnotationClosure() { data && data.annotationFlags && // Default: not printable data.annotationFlags & 0x4 && // Print - data.rect); // rectangle is nessessary + !(data.annotationFlags & 0x2) && // Hidden + data.rect); // rectangle is necessary }, loadResources: function Annotation_loadResources(keys) { @@ -1858,7 +1859,9 @@ var Annotation = (function AnnotationClosure() { if (annotation.isViewable() || annotation.isPrintable()) { return annotation; } else { - warn('unimplemented annotation type: ' + subtype); + if (SUPPORTED_TYPES.indexOf(subtype) === -1) { + warn('unimplemented annotation type: ' + subtype); + } } }; diff --git a/build/pdf.js b/build/pdf.js index b1ddef98e..229163ec5 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.334'; -PDFJS.build = '75859b8'; +PDFJS.version = '1.0.336'; +PDFJS.build = 'b37b338'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -1724,7 +1724,7 @@ var Annotation = (function AnnotationClosure() { data && (!data.annotationFlags || !(data.annotationFlags & 0x22)) && // Hidden or NoView - data.rect); // rectangle is nessessary + data.rect); // rectangle is necessary }, isPrintable: function Annotation_isPrintable() { @@ -1733,7 +1733,8 @@ var Annotation = (function AnnotationClosure() { data && data.annotationFlags && // Default: not printable data.annotationFlags & 0x4 && // Print - data.rect); // rectangle is nessessary + !(data.annotationFlags & 0x2) && // Hidden + data.rect); // rectangle is necessary }, loadResources: function Annotation_loadResources(keys) { @@ -1858,7 +1859,9 @@ var Annotation = (function AnnotationClosure() { if (annotation.isViewable() || annotation.isPrintable()) { return annotation; } else { - warn('unimplemented annotation type: ' + subtype); + if (SUPPORTED_TYPES.indexOf(subtype) === -1) { + warn('unimplemented annotation type: ' + subtype); + } } }; diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 160fd8e21..c076dff30 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.334'; -PDFJS.build = '75859b8'; +PDFJS.version = '1.0.336'; +PDFJS.build = 'b37b338'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -1724,7 +1724,7 @@ var Annotation = (function AnnotationClosure() { data && (!data.annotationFlags || !(data.annotationFlags & 0x22)) && // Hidden or NoView - data.rect); // rectangle is nessessary + data.rect); // rectangle is necessary }, isPrintable: function Annotation_isPrintable() { @@ -1733,7 +1733,8 @@ var Annotation = (function AnnotationClosure() { data && data.annotationFlags && // Default: not printable data.annotationFlags & 0x4 && // Print - data.rect); // rectangle is nessessary + !(data.annotationFlags & 0x2) && // Hidden + data.rect); // rectangle is necessary }, loadResources: function Annotation_loadResources(keys) { @@ -1858,7 +1859,9 @@ var Annotation = (function AnnotationClosure() { if (annotation.isViewable() || annotation.isPrintable()) { return annotation; } else { - warn('unimplemented annotation type: ' + subtype); + if (SUPPORTED_TYPES.indexOf(subtype) === -1) { + warn('unimplemented annotation type: ' + subtype); + } } }; diff --git a/package.json b/package.json index fbfc9eb0a..141b04171 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.334", + "version": "1.0.336", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",