|
|
@ -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); |
|
|
|
} |
|
|
|
} |
|
|
|