Browse Source

PDF.js version 1.1.544

master v1.1.544
Pdf Bot 9 years ago
parent
commit
bd1b164cf9
  1. 2
      bower.json
  2. 37
      build/pdf.combined.js
  3. 9
      build/pdf.js
  4. 32
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

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

37
build/pdf.combined.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.1.535'; PDFJS.version = '1.1.544';
PDFJS.build = 'eff28ee'; PDFJS.build = 'eabbfd7';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
@ -5369,6 +5369,11 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
this.ctx.fillRect(0, 0, 1, 1); this.ctx.fillRect(0, 0, 1, 1);
}, },
paintXObject: function CanvasGraphics_paintXObject() {
UnsupportedManager.notify(UNSUPPORTED_FEATURES.unknown);
warn('Unsupported \'paintXObject\' command.');
},
// Marked content // Marked content
markPoint: function CanvasGraphics_markPoint(tag) { markPoint: function CanvasGraphics_markPoint(tag) {
@ -17536,9 +17541,13 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
operatorList) { operatorList) {
// Create an IR of the pattern code. // Create an IR of the pattern code.
var tilingOpList = new OperatorList(); var tilingOpList = new OperatorList();
return this.getOperatorList(pattern, // Merge the available resources, to prevent issues when the patternDict
(patternDict.get('Resources') || resources), tilingOpList). // is missing some /Resources entries (fixes issue6541.pdf).
then(function () { var resourcesArray = [patternDict.get('Resources'), resources];
var patternResources = Dict.merge(this.xref, resourcesArray);
return this.getOperatorList(pattern, patternResources, tilingOpList).then(
function () {
// Add the dependencies to the parent operator list so they are // Add the dependencies to the parent operator list so they are
// resolved before sub operator list is executed synchronously. // resolved before sub operator list is executed synchronously.
operatorList.addDependencies(tilingOpList.dependencies); operatorList.addDependencies(tilingOpList.dependencies);
@ -18120,6 +18129,24 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
case OPS.rectangle: case OPS.rectangle:
self.buildPath(operatorList, fn, args); self.buildPath(operatorList, fn, args);
continue; continue;
case OPS.markPoint:
case OPS.markPointProps:
case OPS.beginMarkedContent:
case OPS.beginMarkedContentProps:
case OPS.endMarkedContent:
case OPS.beginCompat:
case OPS.endCompat:
// Ignore operators where the corresponding handlers are known to
// be no-op in CanvasGraphics (display/canvas.js). This prevents
// serialization errors and is also a bit more efficient.
// We could also try to serialize all objects in a general way,
// e.g. as done in https://github.com/mozilla/pdf.js/pull/6266,
// but doing so is meaningless without knowing the semantics.
continue;
default:
// Note: Let's hope that the ignored operator does not have any
// non-serializable arguments, otherwise postMessage will throw
// "An object could not be cloned.".
} }
operatorList.addOp(fn, args); operatorList.addOp(fn, args);
} }

9
build/pdf.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.1.535'; PDFJS.version = '1.1.544';
PDFJS.build = 'eff28ee'; PDFJS.build = 'eabbfd7';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
@ -5422,6 +5422,11 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
this.ctx.fillRect(0, 0, 1, 1); this.ctx.fillRect(0, 0, 1, 1);
}, },
paintXObject: function CanvasGraphics_paintXObject() {
UnsupportedManager.notify(UNSUPPORTED_FEATURES.unknown);
warn('Unsupported \'paintXObject\' command.');
},
// Marked content // Marked content
markPoint: function CanvasGraphics_markPoint(tag) { markPoint: function CanvasGraphics_markPoint(tag) {

32
build/pdf.worker.js vendored

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.1.535'; PDFJS.version = '1.1.544';
PDFJS.build = 'eff28ee'; PDFJS.build = 'eabbfd7';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
@ -11080,9 +11080,13 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
operatorList) { operatorList) {
// Create an IR of the pattern code. // Create an IR of the pattern code.
var tilingOpList = new OperatorList(); var tilingOpList = new OperatorList();
return this.getOperatorList(pattern, // Merge the available resources, to prevent issues when the patternDict
(patternDict.get('Resources') || resources), tilingOpList). // is missing some /Resources entries (fixes issue6541.pdf).
then(function () { var resourcesArray = [patternDict.get('Resources'), resources];
var patternResources = Dict.merge(this.xref, resourcesArray);
return this.getOperatorList(pattern, patternResources, tilingOpList).then(
function () {
// Add the dependencies to the parent operator list so they are // Add the dependencies to the parent operator list so they are
// resolved before sub operator list is executed synchronously. // resolved before sub operator list is executed synchronously.
operatorList.addDependencies(tilingOpList.dependencies); operatorList.addDependencies(tilingOpList.dependencies);
@ -11664,6 +11668,24 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
case OPS.rectangle: case OPS.rectangle:
self.buildPath(operatorList, fn, args); self.buildPath(operatorList, fn, args);
continue; continue;
case OPS.markPoint:
case OPS.markPointProps:
case OPS.beginMarkedContent:
case OPS.beginMarkedContentProps:
case OPS.endMarkedContent:
case OPS.beginCompat:
case OPS.endCompat:
// Ignore operators where the corresponding handlers are known to
// be no-op in CanvasGraphics (display/canvas.js). This prevents
// serialization errors and is also a bit more efficient.
// We could also try to serialize all objects in a general way,
// e.g. as done in https://github.com/mozilla/pdf.js/pull/6266,
// but doing so is meaningless without knowing the semantics.
continue;
default:
// Note: Let's hope that the ignored operator does not have any
// non-serializable arguments, otherwise postMessage will throw
// "An object could not be cloned.".
} }
operatorList.addOp(fn, args); operatorList.addOp(fn, args);
} }

2
package.json

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

Loading…
Cancel
Save