Browse Source

PDF.js version 1.0.182

master v1.0.182
Yury Delendik 11 years ago
parent
commit
28a686725d
  1. 2
      bower.json
  2. 12
      build/pdf.combined.js
  3. 12
      build/pdf.js
  4. 12
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "pdfjs-dist",
"version": "1.0.179",
"version": "1.0.182",
"keywords": [
"Mozilla",
"pdf",

12
build/pdf.combined.js

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {};
}
PDFJS.version = '1.0.179';
PDFJS.build = '2acb40f';
PDFJS.version = '1.0.182';
PDFJS.build = 'a27f51e';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it
@ -3241,7 +3241,12 @@ var Annotation = (function AnnotationClosure() { @@ -3241,7 +3241,12 @@ var Annotation = (function AnnotationClosure() {
// TODO: implement proper support for annotations with line dash patterns.
var dashArray = borderArray[3];
if (data.borderWidth > 0 && dashArray && isArray(dashArray)) {
if (data.borderWidth > 0 && dashArray) {
if (!isArray(dashArray)) {
// Ignore the border if dashArray is not actually an array,
// this is consistent with the behaviour in Adobe Reader.
data.borderWidth = 0;
} else {
var dashArrayLength = dashArray.length;
if (dashArrayLength > 0) {
// According to the PDF specification: the elements in a dashArray
@ -3263,6 +3268,7 @@ var Annotation = (function AnnotationClosure() { @@ -3263,6 +3268,7 @@ var Annotation = (function AnnotationClosure() {
}
}
}
}
this.appearance = getDefaultAppearance(dict);
data.hasAppearance = !!this.appearance;

12
build/pdf.js

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {};
}
PDFJS.version = '1.0.179';
PDFJS.build = '2acb40f';
PDFJS.version = '1.0.182';
PDFJS.build = 'a27f51e';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it
@ -3241,7 +3241,12 @@ var Annotation = (function AnnotationClosure() { @@ -3241,7 +3241,12 @@ var Annotation = (function AnnotationClosure() {
// TODO: implement proper support for annotations with line dash patterns.
var dashArray = borderArray[3];
if (data.borderWidth > 0 && dashArray && isArray(dashArray)) {
if (data.borderWidth > 0 && dashArray) {
if (!isArray(dashArray)) {
// Ignore the border if dashArray is not actually an array,
// this is consistent with the behaviour in Adobe Reader.
data.borderWidth = 0;
} else {
var dashArrayLength = dashArray.length;
if (dashArrayLength > 0) {
// According to the PDF specification: the elements in a dashArray
@ -3263,6 +3268,7 @@ var Annotation = (function AnnotationClosure() { @@ -3263,6 +3268,7 @@ var Annotation = (function AnnotationClosure() {
}
}
}
}
this.appearance = getDefaultAppearance(dict);
data.hasAppearance = !!this.appearance;

12
build/pdf.worker.js vendored

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {};
}
PDFJS.version = '1.0.179';
PDFJS.build = '2acb40f';
PDFJS.version = '1.0.182';
PDFJS.build = 'a27f51e';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it
@ -3241,7 +3241,12 @@ var Annotation = (function AnnotationClosure() { @@ -3241,7 +3241,12 @@ var Annotation = (function AnnotationClosure() {
// TODO: implement proper support for annotations with line dash patterns.
var dashArray = borderArray[3];
if (data.borderWidth > 0 && dashArray && isArray(dashArray)) {
if (data.borderWidth > 0 && dashArray) {
if (!isArray(dashArray)) {
// Ignore the border if dashArray is not actually an array,
// this is consistent with the behaviour in Adobe Reader.
data.borderWidth = 0;
} else {
var dashArrayLength = dashArray.length;
if (dashArrayLength > 0) {
// According to the PDF specification: the elements in a dashArray
@ -3263,6 +3268,7 @@ var Annotation = (function AnnotationClosure() { @@ -3263,6 +3268,7 @@ var Annotation = (function AnnotationClosure() {
}
}
}
}
this.appearance = getDefaultAppearance(dict);
data.hasAppearance = !!this.appearance;

2
package.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "pdfjs-dist",
"version": "1.0.179",
"version": "1.0.182",
"description": "Generic build of Mozilla's PDF.js library.",
"keywords": [
"Mozilla",

Loading…
Cancel
Save