@ -79,7 +79,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
var data = message . data ;
var data = message . data ;
return new Stream ( data , 0 , data . length , image . dict ) ;
return new Stream ( data , 0 , data . length , image . dict ) ;
} ) ;
} ) ;
}
} ,
} ;
} ;
/ * *
/ * *
* Checks if the image can be decoded and displayed by the browser without any
* Checks if the image can be decoded and displayed by the browser without any
@ -154,7 +154,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
reset : function TimeSlotManager _reset ( ) {
reset : function TimeSlotManager _reset ( ) {
this . endTime = Date . now ( ) + TIME _SLOT _DURATION _MS ;
this . endTime = Date . now ( ) + TIME _SLOT _DURATION _MS ;
this . checked = 0 ;
this . checked = 0 ;
}
} ,
} ;
} ;
// Convert PDF blend mode names to HTML5 blend mode names.
// Convert PDF blend mode names to HTML5 blend mode names.
@ -298,7 +298,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
bbox ,
bbox ,
smask ,
smask ,
isolated : false ,
isolated : false ,
knockout : false
knockout : false ,
} ;
} ;
var groupSubtype = group . get ( 'S' ) ;
var groupSubtype = group . get ( 'S' ) ;
@ -457,7 +457,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
var smaskContent = smask . get ( 'G' ) ;
var smaskContent = smask . get ( 'G' ) ;
var smaskOptions = {
var smaskOptions = {
subtype : smask . get ( 'S' ) . name ,
subtype : smask . get ( 'S' ) . name ,
backdrop : smask . get ( 'BC' )
backdrop : smask . get ( 'BC' ) ,
} ;
} ;
// The SMask might have a alpha/luminosity value transfer function --
// The SMask might have a alpha/luminosity value transfer function --
@ -502,7 +502,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
operatorList . addDependencies ( tilingOpList . dependencies ) ;
operatorList . addDependencies ( tilingOpList . dependencies ) ;
operatorList . addOp ( fn , getTilingPatternIR ( {
operatorList . addOp ( fn , getTilingPatternIR ( {
fnArray : tilingOpList . fnArray ,
fnArray : tilingOpList . fnArray ,
argsArray : tilingOpList . argsArray
argsArray : tilingOpList . argsArray ,
} , patternDict , args ) ) ;
} , patternDict , args ) ) ;
} ) ;
} ) ;
} ,
} ,
@ -527,7 +527,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
} ) . catch ( ( reason ) => {
} ) . catch ( ( reason ) => {
// Error in the font data -- sending unsupported feature notification.
// Error in the font data -- sending unsupported feature notification.
this . handler . send ( 'UnsupportedFeature' ,
this . handler . send ( 'UnsupportedFeature' ,
{ featureId : UNSUPPORTED _FEATURES . font } ) ;
{ featureId : UNSUPPORTED _FEATURES . font , } ) ;
return new TranslatedFont ( 'g_font_error' ,
return new TranslatedFont ( 'g_font_error' ,
new ErrorFont ( 'Type3 font load error: ' + reason ) , translated . font ) ;
new ErrorFont ( 'Type3 font load error: ' + reason ) , translated . font ) ;
} ) ;
} ) ;
@ -720,7 +720,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
}
}
} else {
} else {
fontAliases [ hash ] = {
fontAliases [ hash ] = {
fontID : Font . getFontID ( )
fontID : Font . getFontID ( ) ,
} ;
} ;
}
}
@ -783,7 +783,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
// TODO fontCapability.reject?
// TODO fontCapability.reject?
// Error in the font data -- sending unsupported feature notification.
// Error in the font data -- sending unsupported feature notification.
this . handler . send ( 'UnsupportedFeature' ,
this . handler . send ( 'UnsupportedFeature' ,
{ featureId : UNSUPPORTED _FEATURES . font } ) ;
{ featureId : UNSUPPORTED _FEATURES . font , } ) ;
try {
try {
// error, but it's still nice to have font type reported
// error, but it's still nice to have font type reported
@ -1155,7 +1155,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
// Error(s) in the OperatorList -- sending unsupported feature
// Error(s) in the OperatorList -- sending unsupported feature
// notification and allow rendering to continue.
// notification and allow rendering to continue.
this . handler . send ( 'UnsupportedFeature' ,
this . handler . send ( 'UnsupportedFeature' ,
{ featureId : UNSUPPORTED _FEATURES . unknown } ) ;
{ featureId : UNSUPPORTED _FEATURES . unknown , } ) ;
warn ( 'getOperatorList - ignoring errors during task: ' + task . name ) ;
warn ( 'getOperatorList - ignoring errors during task: ' + task . name ) ;
closePendingRestoreOPS ( ) ;
closePendingRestoreOPS ( ) ;
@ -1176,7 +1176,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
var textContent = {
var textContent = {
items : [ ] ,
items : [ ] ,
styles : Object . create ( null )
styles : Object . create ( null ) ,
} ;
} ;
var textContentItem = {
var textContentItem = {
initialized : false ,
initialized : false ,
@ -1193,7 +1193,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
fakeMultiSpaceMax : - 0 ,
fakeMultiSpaceMax : - 0 ,
textRunBreakAllowed : false ,
textRunBreakAllowed : false ,
transform : null ,
transform : null ,
fontName : null
fontName : null ,
} ;
} ;
var SPACE _FACTOR = 0.3 ;
var SPACE _FACTOR = 0.3 ;
var MULTI _SPACE _FACTOR = 1.5 ;
var MULTI _SPACE _FACTOR = 1.5 ;
@ -1220,7 +1220,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
fontFamily : font . fallbackName ,
fontFamily : font . fallbackName ,
ascent : font . ascent ,
ascent : font . ascent ,
descent : font . descent ,
descent : font . descent ,
vertical : font . vertical
vertical : font . vertical ,
} ;
} ;
}
}
textContentItem . fontName = font . loadedName ;
textContentItem . fontName = font . loadedName ;
@ -1306,7 +1306,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
width : textChunk . width ,
width : textChunk . width ,
height : textChunk . height ,
height : textChunk . height ,
transform : textChunk . transform ,
transform : textChunk . transform ,
fontName : textChunk . fontName
fontName : textChunk . fontName ,
} ;
} ;
}
}
@ -1711,7 +1711,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
properties . cidSystemInfo = {
properties . cidSystemInfo = {
registry : cidSystemInfo . get ( 'Registry' ) ,
registry : cidSystemInfo . get ( 'Registry' ) ,
ordering : cidSystemInfo . get ( 'Ordering' ) ,
ordering : cidSystemInfo . get ( 'Ordering' ) ,
supplement : cidSystemInfo . get ( 'Supplement' )
supplement : cidSystemInfo . get ( 'Supplement' ) ,
} ;
} ;
}
}
@ -2260,7 +2260,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
baseDict ,
baseDict ,
composite ,
composite ,
type : type . name ,
type : type . name ,
hash : hash ? hash . hexdigest ( ) : ''
hash : hash ? hash . hexdigest ( ) : '' ,
} ;
} ;
} ,
} ,
@ -2306,7 +2306,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
defaultWidth : metrics . defaultWidth ,
defaultWidth : metrics . defaultWidth ,
flags ,
flags ,
firstChar : 0 ,
firstChar : 0 ,
lastChar : maxCharIndex
lastChar : maxCharIndex ,
} ;
} ;
return this . extractDataStructures ( dict , dict , properties ) .
return this . extractDataStructures ( dict , dict , properties ) .
then ( ( properties ) => {
then ( ( properties ) => {
@ -2389,7 +2389,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
capHeight : descriptor . get ( 'CapHeight' ) ,
capHeight : descriptor . get ( 'CapHeight' ) ,
flags : descriptor . get ( 'Flags' ) ,
flags : descriptor . get ( 'Flags' ) ,
italicAngle : descriptor . get ( 'ItalicAngle' ) ,
italicAngle : descriptor . get ( 'ItalicAngle' ) ,
coded : false
coded : false ,
} ;
} ;
var cMapPromise ;
var cMapPromise ;
@ -2420,7 +2420,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
}
}
return new Font ( fontName . name , fontFile , properties ) ;
return new Font ( fontName . name , fontFile , properties ) ;
} ) ;
} ) ;
}
} ,
} ;
} ;
return PartialEvaluator ;
return PartialEvaluator ;
@ -2494,7 +2494,7 @@ var TranslatedFont = (function TranslatedFontClosure() {
translatedFont . charProcOperatorList = charProcOperatorList ;
translatedFont . charProcOperatorList = charProcOperatorList ;
} ) ;
} ) ;
return this . type3Loaded ;
return this . type3Loaded ;
}
} ,
} ;
} ;
return TranslatedFont ;
return TranslatedFont ;
} ) ( ) ;
} ) ( ) ;
@ -2583,7 +2583,7 @@ var OperatorList = (function OperatorListClosure() {
return {
return {
fnArray : this . fnArray ,
fnArray : this . fnArray ,
argsArray : this . argsArray ,
argsArray : this . argsArray ,
length : this . length
length : this . length ,
} ;
} ;
} ,
} ,
@ -2603,12 +2603,12 @@ var OperatorList = (function OperatorListClosure() {
length ,
length ,
} ,
} ,
pageIndex : this . pageIndex ,
pageIndex : this . pageIndex ,
intent : this . intent
intent : this . intent ,
} , transfers ) ;
} , transfers ) ;
this . dependencies = Object . create ( null ) ;
this . dependencies = Object . create ( null ) ;
this . fnArray . length = 0 ;
this . fnArray . length = 0 ;
this . argsArray . length = 0 ;
this . argsArray . length = 0 ;
}
} ,
} ;
} ;
return OperatorList ;
return OperatorList ;
@ -2633,7 +2633,7 @@ var StateManager = (function StateManagerClosure() {
} ,
} ,
transform ( args ) {
transform ( args ) {
this . state . ctm = Util . transform ( this . state . ctm , args ) ;
this . state . ctm = Util . transform ( this . state . ctm , args ) ;
}
} ,
} ;
} ;
return StateManager ;
return StateManager ;
} ) ( ) ;
} ) ( ) ;
@ -2714,7 +2714,7 @@ var TextState = (function TextStateClosure() {
clone . textLineMatrix = this . textLineMatrix . slice ( ) ;
clone . textLineMatrix = this . textLineMatrix . slice ( ) ;
clone . fontMatrix = this . fontMatrix . slice ( ) ;
clone . fontMatrix = this . fontMatrix . slice ( ) ;
return clone ;
return clone ;
}
} ,
} ;
} ;
return TextState ;
return TextState ;
} ) ( ) ;
} ) ( ) ;
@ -2742,100 +2742,101 @@ var EvaluatorPreprocessor = (function EvaluatorPreprocessorClosure() {
// If variableArgs === false: exactly `numArgs` expected
// If variableArgs === false: exactly `numArgs` expected
var getOPMap = getLookupTableFactory ( function ( t ) {
var getOPMap = getLookupTableFactory ( function ( t ) {
// Graphic state
// Graphic state
t [ 'w' ] = { id : OPS . setLineWidth , numArgs : 1 , variableArgs : false } ;
t [ 'w' ] = { id : OPS . setLineWidth , numArgs : 1 , variableArgs : false , } ;
t [ 'J' ] = { id : OPS . setLineCap , numArgs : 1 , variableArgs : false } ;
t [ 'J' ] = { id : OPS . setLineCap , numArgs : 1 , variableArgs : false , } ;
t [ 'j' ] = { id : OPS . setLineJoin , numArgs : 1 , variableArgs : false } ;
t [ 'j' ] = { id : OPS . setLineJoin , numArgs : 1 , variableArgs : false , } ;
t [ 'M' ] = { id : OPS . setMiterLimit , numArgs : 1 , variableArgs : false } ;
t [ 'M' ] = { id : OPS . setMiterLimit , numArgs : 1 , variableArgs : false , } ;
t [ 'd' ] = { id : OPS . setDash , numArgs : 2 , variableArgs : false } ;
t [ 'd' ] = { id : OPS . setDash , numArgs : 2 , variableArgs : false , } ;
t [ 'ri' ] = { id : OPS . setRenderingIntent , numArgs : 1 , variableArgs : false } ;
t [ 'ri' ] = { id : OPS . setRenderingIntent , numArgs : 1 , variableArgs : false , } ;
t [ 'i' ] = { id : OPS . setFlatness , numArgs : 1 , variableArgs : false } ;
t [ 'i' ] = { id : OPS . setFlatness , numArgs : 1 , variableArgs : false , } ;
t [ 'gs' ] = { id : OPS . setGState , numArgs : 1 , variableArgs : false } ;
t [ 'gs' ] = { id : OPS . setGState , numArgs : 1 , variableArgs : false , } ;
t [ 'q' ] = { id : OPS . save , numArgs : 0 , variableArgs : false } ;
t [ 'q' ] = { id : OPS . save , numArgs : 0 , variableArgs : false , } ;
t [ 'Q' ] = { id : OPS . restore , numArgs : 0 , variableArgs : false } ;
t [ 'Q' ] = { id : OPS . restore , numArgs : 0 , variableArgs : false , } ;
t [ 'cm' ] = { id : OPS . transform , numArgs : 6 , variableArgs : false } ;
t [ 'cm' ] = { id : OPS . transform , numArgs : 6 , variableArgs : false , } ;
// Path
// Path
t [ 'm' ] = { id : OPS . moveTo , numArgs : 2 , variableArgs : false } ;
t [ 'm' ] = { id : OPS . moveTo , numArgs : 2 , variableArgs : false , } ;
t [ 'l' ] = { id : OPS . lineTo , numArgs : 2 , variableArgs : false } ;
t [ 'l' ] = { id : OPS . lineTo , numArgs : 2 , variableArgs : false , } ;
t [ 'c' ] = { id : OPS . curveTo , numArgs : 6 , variableArgs : false } ;
t [ 'c' ] = { id : OPS . curveTo , numArgs : 6 , variableArgs : false , } ;
t [ 'v' ] = { id : OPS . curveTo2 , numArgs : 4 , variableArgs : false } ;
t [ 'v' ] = { id : OPS . curveTo2 , numArgs : 4 , variableArgs : false , } ;
t [ 'y' ] = { id : OPS . curveTo3 , numArgs : 4 , variableArgs : false } ;
t [ 'y' ] = { id : OPS . curveTo3 , numArgs : 4 , variableArgs : false , } ;
t [ 'h' ] = { id : OPS . closePath , numArgs : 0 , variableArgs : false } ;
t [ 'h' ] = { id : OPS . closePath , numArgs : 0 , variableArgs : false , } ;
t [ 're' ] = { id : OPS . rectangle , numArgs : 4 , variableArgs : false } ;
t [ 're' ] = { id : OPS . rectangle , numArgs : 4 , variableArgs : false , } ;
t [ 'S' ] = { id : OPS . stroke , numArgs : 0 , variableArgs : false } ;
t [ 'S' ] = { id : OPS . stroke , numArgs : 0 , variableArgs : false , } ;
t [ 's' ] = { id : OPS . closeStroke , numArgs : 0 , variableArgs : false } ;
t [ 's' ] = { id : OPS . closeStroke , numArgs : 0 , variableArgs : false , } ;
t [ 'f' ] = { id : OPS . fill , numArgs : 0 , variableArgs : false } ;
t [ 'f' ] = { id : OPS . fill , numArgs : 0 , variableArgs : false , } ;
t [ 'F' ] = { id : OPS . fill , numArgs : 0 , variableArgs : false } ;
t [ 'F' ] = { id : OPS . fill , numArgs : 0 , variableArgs : false , } ;
t [ 'f*' ] = { id : OPS . eoFill , numArgs : 0 , variableArgs : false } ;
t [ 'f*' ] = { id : OPS . eoFill , numArgs : 0 , variableArgs : false , } ;
t [ 'B' ] = { id : OPS . fillStroke , numArgs : 0 , variableArgs : false } ;
t [ 'B' ] = { id : OPS . fillStroke , numArgs : 0 , variableArgs : false , } ;
t [ 'B*' ] = { id : OPS . eoFillStroke , numArgs : 0 , variableArgs : false } ;
t [ 'B*' ] = { id : OPS . eoFillStroke , numArgs : 0 , variableArgs : false , } ;
t [ 'b' ] = { id : OPS . closeFillStroke , numArgs : 0 , variableArgs : false } ;
t [ 'b' ] = { id : OPS . closeFillStroke , numArgs : 0 , variableArgs : false , } ;
t [ 'b*' ] = { id : OPS . closeEOFillStroke , numArgs : 0 , variableArgs : false } ;
t [ 'b*' ] = { id : OPS . closeEOFillStroke , numArgs : 0 , variableArgs : false , } ;
t [ 'n' ] = { id : OPS . endPath , numArgs : 0 , variableArgs : false } ;
t [ 'n' ] = { id : OPS . endPath , numArgs : 0 , variableArgs : false , } ;
// Clipping
// Clipping
t [ 'W' ] = { id : OPS . clip , numArgs : 0 , variableArgs : false } ;
t [ 'W' ] = { id : OPS . clip , numArgs : 0 , variableArgs : false , } ;
t [ 'W*' ] = { id : OPS . eoClip , numArgs : 0 , variableArgs : false } ;
t [ 'W*' ] = { id : OPS . eoClip , numArgs : 0 , variableArgs : false , } ;
// Text
// Text
t [ 'BT' ] = { id : OPS . beginText , numArgs : 0 , variableArgs : false } ;
t [ 'BT' ] = { id : OPS . beginText , numArgs : 0 , variableArgs : false , } ;
t [ 'ET' ] = { id : OPS . endText , numArgs : 0 , variableArgs : false } ;
t [ 'ET' ] = { id : OPS . endText , numArgs : 0 , variableArgs : false , } ;
t [ 'Tc' ] = { id : OPS . setCharSpacing , numArgs : 1 , variableArgs : false } ;
t [ 'Tc' ] = { id : OPS . setCharSpacing , numArgs : 1 , variableArgs : false , } ;
t [ 'Tw' ] = { id : OPS . setWordSpacing , numArgs : 1 , variableArgs : false } ;
t [ 'Tw' ] = { id : OPS . setWordSpacing , numArgs : 1 , variableArgs : false , } ;
t [ 'Tz' ] = { id : OPS . setHScale , numArgs : 1 , variableArgs : false } ;
t [ 'Tz' ] = { id : OPS . setHScale , numArgs : 1 , variableArgs : false , } ;
t [ 'TL' ] = { id : OPS . setLeading , numArgs : 1 , variableArgs : false } ;
t [ 'TL' ] = { id : OPS . setLeading , numArgs : 1 , variableArgs : false , } ;
t [ 'Tf' ] = { id : OPS . setFont , numArgs : 2 , variableArgs : false } ;
t [ 'Tf' ] = { id : OPS . setFont , numArgs : 2 , variableArgs : false , } ;
t [ 'Tr' ] = { id : OPS . setTextRenderingMode , numArgs : 1 , variableArgs : false } ;
t [ 'Tr' ] = { id : OPS . setTextRenderingMode , numArgs : 1 ,
t [ 'Ts' ] = { id : OPS . setTextRise , numArgs : 1 , variableArgs : false } ;
variableArgs : false , } ;
t [ 'Td' ] = { id : OPS . moveText , numArgs : 2 , variableArgs : false } ;
t [ 'Ts' ] = { id : OPS . setTextRise , numArgs : 1 , variableArgs : false , } ;
t [ 'TD' ] = { id : OPS . setLeadingMoveText , numArgs : 2 , variableArgs : false } ;
t [ 'Td' ] = { id : OPS . moveText , numArgs : 2 , variableArgs : false , } ;
t [ 'Tm' ] = { id : OPS . setTextMatrix , numArgs : 6 , variableArgs : false } ;
t [ 'TD' ] = { id : OPS . setLeadingMoveText , numArgs : 2 , variableArgs : false , } ;
t [ 'T*' ] = { id : OPS . nextLine , numArgs : 0 , variableArgs : false } ;
t [ 'Tm' ] = { id : OPS . setTextMatrix , numArgs : 6 , variableArgs : false , } ;
t [ 'Tj' ] = { id : OPS . showText , numArgs : 1 , variableArgs : false } ;
t [ 'T*' ] = { id : OPS . nextLine , numArgs : 0 , variableArgs : false , } ;
t [ 'TJ' ] = { id : OPS . showSpacedText , numArgs : 1 , variableArgs : false } ;
t [ 'Tj' ] = { id : OPS . showText , numArgs : 1 , variableArgs : false , } ;
t [ '\'' ] = { id : OPS . nextLineShowText , numArgs : 1 , variableArgs : false } ;
t [ 'TJ' ] = { id : OPS . showSpacedText , numArgs : 1 , variableArgs : false , } ;
t [ '\'' ] = { id : OPS . nextLineShowText , numArgs : 1 , variableArgs : false , } ;
t [ '"' ] = { id : OPS . nextLineSetSpacingShowText , numArgs : 3 ,
t [ '"' ] = { id : OPS . nextLineSetSpacingShowText , numArgs : 3 ,
variableArgs : false } ;
variableArgs : false , } ;
// Type3 fonts
// Type3 fonts
t [ 'd0' ] = { id : OPS . setCharWidth , numArgs : 2 , variableArgs : false } ;
t [ 'd0' ] = { id : OPS . setCharWidth , numArgs : 2 , variableArgs : false , } ;
t [ 'd1' ] = { id : OPS . setCharWidthAndBounds , numArgs : 6 ,
t [ 'd1' ] = { id : OPS . setCharWidthAndBounds , numArgs : 6 ,
variableArgs : false } ;
variableArgs : false , } ;
// Color
// Color
t [ 'CS' ] = { id : OPS . setStrokeColorSpace , numArgs : 1 , variableArgs : false } ;
t [ 'CS' ] = { id : OPS . setStrokeColorSpace , numArgs : 1 , variableArgs : false , } ;
t [ 'cs' ] = { id : OPS . setFillColorSpace , numArgs : 1 , variableArgs : false } ;
t [ 'cs' ] = { id : OPS . setFillColorSpace , numArgs : 1 , variableArgs : false , } ;
t [ 'SC' ] = { id : OPS . setStrokeColor , numArgs : 4 , variableArgs : true } ;
t [ 'SC' ] = { id : OPS . setStrokeColor , numArgs : 4 , variableArgs : true , } ;
t [ 'SCN' ] = { id : OPS . setStrokeColorN , numArgs : 33 , variableArgs : true } ;
t [ 'SCN' ] = { id : OPS . setStrokeColorN , numArgs : 33 , variableArgs : true , } ;
t [ 'sc' ] = { id : OPS . setFillColor , numArgs : 4 , variableArgs : true } ;
t [ 'sc' ] = { id : OPS . setFillColor , numArgs : 4 , variableArgs : true , } ;
t [ 'scn' ] = { id : OPS . setFillColorN , numArgs : 33 , variableArgs : true } ;
t [ 'scn' ] = { id : OPS . setFillColorN , numArgs : 33 , variableArgs : true , } ;
t [ 'G' ] = { id : OPS . setStrokeGray , numArgs : 1 , variableArgs : false } ;
t [ 'G' ] = { id : OPS . setStrokeGray , numArgs : 1 , variableArgs : false , } ;
t [ 'g' ] = { id : OPS . setFillGray , numArgs : 1 , variableArgs : false } ;
t [ 'g' ] = { id : OPS . setFillGray , numArgs : 1 , variableArgs : false , } ;
t [ 'RG' ] = { id : OPS . setStrokeRGBColor , numArgs : 3 , variableArgs : false } ;
t [ 'RG' ] = { id : OPS . setStrokeRGBColor , numArgs : 3 , variableArgs : false , } ;
t [ 'rg' ] = { id : OPS . setFillRGBColor , numArgs : 3 , variableArgs : false } ;
t [ 'rg' ] = { id : OPS . setFillRGBColor , numArgs : 3 , variableArgs : false , } ;
t [ 'K' ] = { id : OPS . setStrokeCMYKColor , numArgs : 4 , variableArgs : false } ;
t [ 'K' ] = { id : OPS . setStrokeCMYKColor , numArgs : 4 , variableArgs : false , } ;
t [ 'k' ] = { id : OPS . setFillCMYKColor , numArgs : 4 , variableArgs : false } ;
t [ 'k' ] = { id : OPS . setFillCMYKColor , numArgs : 4 , variableArgs : false , } ;
// Shading
// Shading
t [ 'sh' ] = { id : OPS . shadingFill , numArgs : 1 , variableArgs : false } ;
t [ 'sh' ] = { id : OPS . shadingFill , numArgs : 1 , variableArgs : false , } ;
// Images
// Images
t [ 'BI' ] = { id : OPS . beginInlineImage , numArgs : 0 , variableArgs : false } ;
t [ 'BI' ] = { id : OPS . beginInlineImage , numArgs : 0 , variableArgs : false , } ;
t [ 'ID' ] = { id : OPS . beginImageData , numArgs : 0 , variableArgs : false } ;
t [ 'ID' ] = { id : OPS . beginImageData , numArgs : 0 , variableArgs : false , } ;
t [ 'EI' ] = { id : OPS . endInlineImage , numArgs : 1 , variableArgs : false } ;
t [ 'EI' ] = { id : OPS . endInlineImage , numArgs : 1 , variableArgs : false , } ;
// XObjects
// XObjects
t [ 'Do' ] = { id : OPS . paintXObject , numArgs : 1 , variableArgs : false } ;
t [ 'Do' ] = { id : OPS . paintXObject , numArgs : 1 , variableArgs : false , } ;
t [ 'MP' ] = { id : OPS . markPoint , numArgs : 1 , variableArgs : false } ;
t [ 'MP' ] = { id : OPS . markPoint , numArgs : 1 , variableArgs : false , } ;
t [ 'DP' ] = { id : OPS . markPointProps , numArgs : 2 , variableArgs : false } ;
t [ 'DP' ] = { id : OPS . markPointProps , numArgs : 2 , variableArgs : false , } ;
t [ 'BMC' ] = { id : OPS . beginMarkedContent , numArgs : 1 , variableArgs : false } ;
t [ 'BMC' ] = { id : OPS . beginMarkedContent , numArgs : 1 , variableArgs : false , } ;
t [ 'BDC' ] = { id : OPS . beginMarkedContentProps , numArgs : 2 ,
t [ 'BDC' ] = { id : OPS . beginMarkedContentProps , numArgs : 2 ,
variableArgs : false } ;
variableArgs : false , } ;
t [ 'EMC' ] = { id : OPS . endMarkedContent , numArgs : 0 , variableArgs : false } ;
t [ 'EMC' ] = { id : OPS . endMarkedContent , numArgs : 0 , variableArgs : false , } ;
// Compatibility
// Compatibility
t [ 'BX' ] = { id : OPS . beginCompat , numArgs : 0 , variableArgs : false } ;
t [ 'BX' ] = { id : OPS . beginCompat , numArgs : 0 , variableArgs : false , } ;
t [ 'EX' ] = { id : OPS . endCompat , numArgs : 0 , variableArgs : false } ;
t [ 'EX' ] = { id : OPS . endCompat , numArgs : 0 , variableArgs : false , } ;
// (reserved partial commands for the lexer)
// (reserved partial commands for the lexer)
t [ 'BM' ] = null ;
t [ 'BM' ] = null ;
@ -2968,7 +2969,7 @@ var EvaluatorPreprocessor = (function EvaluatorPreprocessorClosure() {
this . stateManager . transform ( args ) ;
this . stateManager . transform ( args ) ;
break ;
break ;
}
}
}
} ,
} ;
} ;
return EvaluatorPreprocessor ;
return EvaluatorPreprocessor ;
} ) ( ) ;
} ) ( ) ;
@ -3062,7 +3063,7 @@ var QueueOptimizer = (function QueueOptimizerClosure() {
map . push ( {
map . push ( {
transform ,
transform ,
x : currentX , y : currentY ,
x : currentX , y : currentY ,
w : img . width , h : img . height
w : img . width , h : img . height ,
} ) ;
} ) ;
currentX += img . width + 2 * IMAGE _PADDING ;
currentX += img . width + 2 * IMAGE _PADDING ;
maxLineHeight = Math . max ( maxLineHeight , img . height ) ;
maxLineHeight = Math . max ( maxLineHeight , img . height ) ;
@ -3101,7 +3102,7 @@ var QueueOptimizer = (function QueueOptimizerClosure() {
fnArray . splice ( iFirstSave , count * 4 , OPS . paintInlineImageXObjectGroup ) ;
fnArray . splice ( iFirstSave , count * 4 , OPS . paintInlineImageXObjectGroup ) ;
argsArray . splice ( iFirstSave , count * 4 ,
argsArray . splice ( iFirstSave , count * 4 ,
[ { width : imgWidth , height : imgHeight , kind : ImageKind . RGBA _32BPP ,
[ { width : imgWidth , height : imgHeight , kind : ImageKind . RGBA _32BPP ,
data : imgData } , map ] ) ;
data : imgData , } , map ] ) ;
return iFirstSave + 1 ;
return iFirstSave + 1 ;
} ) ;
} ) ;
@ -3194,7 +3195,7 @@ var QueueOptimizer = (function QueueOptimizerClosure() {
var maskParams = argsArray [ iFirstPIMXO + ( q << 2 ) ] [ 0 ] ;
var maskParams = argsArray [ iFirstPIMXO + ( q << 2 ) ] [ 0 ] ;
images . push ( { data : maskParams . data , width : maskParams . width ,
images . push ( { data : maskParams . data , width : maskParams . width ,
height : maskParams . height ,
height : maskParams . height ,
transform : transformArgs } ) ;
transform : transformArgs , } ) ;
}
}
// Replace queue items.
// Replace queue items.
@ -3372,7 +3373,7 @@ var QueueOptimizer = (function QueueOptimizerClosure() {
i ++ ;
i ++ ;
}
}
}
}
}
} ,
} ;
} ;
return QueueOptimizer ;
return QueueOptimizer ;
} ) ( ) ;
} ) ( ) ;