|
|
|
@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
|
|
|
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
PDFJS.version = '1.1.205'; |
|
|
|
|
PDFJS.build = 'bf20334'; |
|
|
|
|
PDFJS.version = '1.1.207'; |
|
|
|
|
PDFJS.build = 'c8fd9c8'; |
|
|
|
|
|
|
|
|
|
(function pdfjsWrapper() { |
|
|
|
|
// Use strict in our context only - users might not want it
|
|
|
|
@ -13162,7 +13162,7 @@ var ColorSpace = (function ColorSpaceClosure() {
@@ -13162,7 +13162,7 @@ var ColorSpace = (function ColorSpaceClosure() {
|
|
|
|
|
} else if (isArray(cs)) { |
|
|
|
|
mode = xref.fetchIfRef(cs[0]).name; |
|
|
|
|
this.mode = mode; |
|
|
|
|
var numComps, params; |
|
|
|
|
var numComps, params, alt; |
|
|
|
|
|
|
|
|
|
switch (mode) { |
|
|
|
|
case 'DeviceGray': |
|
|
|
@ -13184,6 +13184,17 @@ var ColorSpace = (function ColorSpaceClosure() {
@@ -13184,6 +13184,17 @@ var ColorSpace = (function ColorSpaceClosure() {
|
|
|
|
|
var stream = xref.fetchIfRef(cs[1]); |
|
|
|
|
var dict = stream.dict; |
|
|
|
|
numComps = dict.get('N'); |
|
|
|
|
alt = dict.get('Alternate'); |
|
|
|
|
if (alt) { |
|
|
|
|
var altIR = ColorSpace.parseToIR(alt, xref, res); |
|
|
|
|
// Parse the /Alternate CS to ensure that the number of components
|
|
|
|
|
// are correct, and also (indirectly) that it is not a PatternCS.
|
|
|
|
|
var altCS = ColorSpace.fromIR(altIR); |
|
|
|
|
if (altCS.numComps === numComps) { |
|
|
|
|
return altIR; |
|
|
|
|
} |
|
|
|
|
warn('ICCBased color space: Ignoring incorrect /Alternate entry.'); |
|
|
|
|
} |
|
|
|
|
if (numComps === 1) { |
|
|
|
|
return 'DeviceGrayCS'; |
|
|
|
|
} else if (numComps === 3) { |
|
|
|
@ -13216,11 +13227,11 @@ var ColorSpace = (function ColorSpaceClosure() {
@@ -13216,11 +13227,11 @@ var ColorSpace = (function ColorSpaceClosure() {
|
|
|
|
|
} else if (isArray(name)) { |
|
|
|
|
numComps = name.length; |
|
|
|
|
} |
|
|
|
|
var alt = ColorSpace.parseToIR(cs[2], xref, res); |
|
|
|
|
alt = ColorSpace.parseToIR(cs[2], xref, res); |
|
|
|
|
var tintFnIR = PDFFunction.getIR(xref, xref.fetchIfRef(cs[3])); |
|
|
|
|
return ['AlternateCS', numComps, alt, tintFnIR]; |
|
|
|
|
case 'Lab': |
|
|
|
|
params = cs[1].getAll(); |
|
|
|
|
params = xref.fetchIfRef(cs[1]).getAll(); |
|
|
|
|
return ['LabCS', params]; |
|
|
|
|
default: |
|
|
|
|
error('unimplemented color space object "' + mode + '"'); |
|
|
|
|