Browse Source

PDF.js version 1.0.258

master v1.0.258
Yury Delendik 11 years ago
parent
commit
4d37f05f2b
  1. 2
      bower.json
  2. 20
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 20
      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.256",
"version": "1.0.258",
"keywords": [
"Mozilla",
"pdf",

20
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.256';
PDFJS.build = '2a51b73';
PDFJS.version = '1.0.258';
PDFJS.build = 'd65df7d';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it
@ -8767,6 +8767,22 @@ var Catalog = (function CatalogClosure() { @@ -8767,6 +8767,22 @@ var Catalog = (function CatalogClosure() {
javaScript.push(stringToPDFString(js));
}
}
// Append OpenAction actions to javaScript array
var openactionDict = this.catDict.get('OpenAction');
if (isDict(openactionDict)) {
var objType = openactionDict.get('Type');
var actionType = openactionDict.get('S');
var action = openactionDict.get('N');
var isPrintAction = (isName(objType) && objType.name === 'Action' &&
isName(actionType) && actionType.name === 'Named' &&
isName(action) && action.name === 'Print');
if (isPrintAction) {
javaScript.push('print(true);');
}
}
return shadow(this, 'javaScript', javaScript);
},

4
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.256';
PDFJS.build = '2a51b73';
PDFJS.version = '1.0.258';
PDFJS.build = 'd65df7d';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it

20
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.256';
PDFJS.build = '2a51b73';
PDFJS.version = '1.0.258';
PDFJS.build = 'd65df7d';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it
@ -4260,6 +4260,22 @@ var Catalog = (function CatalogClosure() { @@ -4260,6 +4260,22 @@ var Catalog = (function CatalogClosure() {
javaScript.push(stringToPDFString(js));
}
}
// Append OpenAction actions to javaScript array
var openactionDict = this.catDict.get('OpenAction');
if (isDict(openactionDict)) {
var objType = openactionDict.get('Type');
var actionType = openactionDict.get('S');
var action = openactionDict.get('N');
var isPrintAction = (isName(objType) && objType.name === 'Action' &&
isName(actionType) && actionType.name === 'Named' &&
isName(action) && action.name === 'Print');
if (isPrintAction) {
javaScript.push('print(true);');
}
}
return shadow(this, 'javaScript', javaScript);
},

2
package.json

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

Loading…
Cancel
Save