@ -13,101 +13,39 @@
* limitations under the License .
* limitations under the License .
* /
* /
'use strict' ;
import {
assert , CMapCompressionType , createPromiseCapability , error ,
( function ( root , factory ) {
FONT _IDENTITY _MATRIX , getLookupTableFactory , IDENTITY _MATRIX , ImageKind , info ,
if ( typeof define === 'function' && define . amd ) {
isArray , isNum , isString , NativeImageDecoding , OPS , TextRenderingMode ,
define ( 'pdfjs/core/evaluator' , [ 'exports' , 'pdfjs/shared/util' ,
UNSUPPORTED _FEATURES , Util , warn
'pdfjs/core/primitives' , 'pdfjs/core/stream' , 'pdfjs/core/parser' ,
} from '../shared/util' ;
'pdfjs/core/image' , 'pdfjs/core/colorspace' , 'pdfjs/core/murmurhash3' ,
import { CMapFactory , IdentityCMap } from './cmap' ;
'pdfjs/core/fonts' , 'pdfjs/core/function' , 'pdfjs/core/pattern' ,
import { DecodeStream , JpegStream , Stream } from './stream' ;
'pdfjs/core/cmap' , 'pdfjs/core/metrics' , 'pdfjs/core/bidi' ,
import {
'pdfjs/core/encodings' , 'pdfjs/core/standard_fonts' ,
Dict , isCmd , isDict , isEOF , isName , isRef , isStream , Name
'pdfjs/core/unicode' , 'pdfjs/core/glyphlist' ] , factory ) ;
} from './primitives' ;
} else if ( typeof exports !== 'undefined' ) {
import {
factory ( exports , require ( '../shared/util.js' ) , require ( './primitives.js' ) ,
ErrorFont , Font , FontFlags , getFontType , IdentityToUnicodeMap , ToUnicodeMap
require ( './stream.js' ) , require ( './parser.js' ) , require ( './image.js' ) ,
} from './fonts' ;
require ( './colorspace.js' ) , require ( './murmurhash3.js' ) ,
import {
require ( './fonts.js' ) , require ( './function.js' ) , require ( './pattern.js' ) ,
getEncoding , MacRomanEncoding , StandardEncoding , SymbolSetEncoding ,
require ( './cmap.js' ) , require ( './metrics.js' ) , require ( './bidi.js' ) ,
WinAnsiEncoding , ZapfDingbatsEncoding
require ( './encodings.js' ) , require ( './standard_fonts.js' ) ,
} from './encodings' ;
require ( './unicode.js' ) , require ( './glyphlist.js' ) ) ;
import {
} else {
getNormalizedUnicodes , getUnicodeForGlyph , reverseIfRtl
factory ( ( root . pdfjsCoreEvaluator = { } ) , root . pdfjsSharedUtil ,
} from './unicode' ;
root . pdfjsCorePrimitives , root . pdfjsCoreStream , root . pdfjsCoreParser ,
import {
root . pdfjsCoreImage , root . pdfjsCoreColorSpace , root . pdfjsCoreMurmurHash3 ,
getSerifFonts , getStdFontMap , getSymbolsFonts
root . pdfjsCoreFonts , root . pdfjsCoreFunction , root . pdfjsCorePattern ,
} from './standard_fonts' ;
root . pdfjsCoreCMap , root . pdfjsCoreMetrics , root . pdfjsCoreBidi ,
import { getTilingPatternIR , Pattern } from './pattern' ;
root . pdfjsCoreEncodings , root . pdfjsCoreStandardFonts ,
import { isPDFFunction , PDFFunction } from './function' ;
root . pdfjsCoreUnicode , root . pdfjsCoreGlyphList ) ;
import { Lexer , Parser } from './parser' ;
}
import { bidi } from './bidi' ;
} ( this , function ( exports , sharedUtil , corePrimitives , coreStream , coreParser ,
import { ColorSpace } from './colorspace' ;
coreImage , coreColorSpace , coreMurmurHash3 , coreFonts ,
import { getGlyphsUnicode } from './glyphlist' ;
coreFunction , corePattern , coreCMap , coreMetrics , coreBidi ,
import { getMetrics } from './metrics' ;
coreEncodings , coreStandardFonts , coreUnicode ,
import { MurmurHash3 _64 } from './murmurhash3' ;
coreGlyphList ) {
import { PDFImage } from './image' ;
var FONT _IDENTITY _MATRIX = sharedUtil . FONT _IDENTITY _MATRIX ;
var IDENTITY _MATRIX = sharedUtil . IDENTITY _MATRIX ;
var UNSUPPORTED _FEATURES = sharedUtil . UNSUPPORTED _FEATURES ;
var ImageKind = sharedUtil . ImageKind ;
var OPS = sharedUtil . OPS ;
var NativeImageDecoding = sharedUtil . NativeImageDecoding ;
var TextRenderingMode = sharedUtil . TextRenderingMode ;
var CMapCompressionType = sharedUtil . CMapCompressionType ;
var Util = sharedUtil . Util ;
var assert = sharedUtil . assert ;
var createPromiseCapability = sharedUtil . createPromiseCapability ;
var error = sharedUtil . error ;
var info = sharedUtil . info ;
var isArray = sharedUtil . isArray ;
var isNum = sharedUtil . isNum ;
var isString = sharedUtil . isString ;
var getLookupTableFactory = sharedUtil . getLookupTableFactory ;
var warn = sharedUtil . warn ;
var Dict = corePrimitives . Dict ;
var Name = corePrimitives . Name ;
var isEOF = corePrimitives . isEOF ;
var isCmd = corePrimitives . isCmd ;
var isDict = corePrimitives . isDict ;
var isName = corePrimitives . isName ;
var isRef = corePrimitives . isRef ;
var isStream = corePrimitives . isStream ;
var DecodeStream = coreStream . DecodeStream ;
var JpegStream = coreStream . JpegStream ;
var Stream = coreStream . Stream ;
var Lexer = coreParser . Lexer ;
var Parser = coreParser . Parser ;
var PDFImage = coreImage . PDFImage ;
var ColorSpace = coreColorSpace . ColorSpace ;
var MurmurHash3 _64 = coreMurmurHash3 . MurmurHash3 _64 ;
var ErrorFont = coreFonts . ErrorFont ;
var FontFlags = coreFonts . FontFlags ;
var Font = coreFonts . Font ;
var IdentityToUnicodeMap = coreFonts . IdentityToUnicodeMap ;
var ToUnicodeMap = coreFonts . ToUnicodeMap ;
var getFontType = coreFonts . getFontType ;
var isPDFFunction = coreFunction . isPDFFunction ;
var PDFFunction = coreFunction . PDFFunction ;
var Pattern = corePattern . Pattern ;
var getTilingPatternIR = corePattern . getTilingPatternIR ;
var CMapFactory = coreCMap . CMapFactory ;
var IdentityCMap = coreCMap . IdentityCMap ;
var getMetrics = coreMetrics . getMetrics ;
var bidi = coreBidi . bidi ;
var WinAnsiEncoding = coreEncodings . WinAnsiEncoding ;
var StandardEncoding = coreEncodings . StandardEncoding ;
var MacRomanEncoding = coreEncodings . MacRomanEncoding ;
var SymbolSetEncoding = coreEncodings . SymbolSetEncoding ;
var ZapfDingbatsEncoding = coreEncodings . ZapfDingbatsEncoding ;
var getEncoding = coreEncodings . getEncoding ;
var getStdFontMap = coreStandardFonts . getStdFontMap ;
var getSerifFonts = coreStandardFonts . getSerifFonts ;
var getSymbolsFonts = coreStandardFonts . getSymbolsFonts ;
var getNormalizedUnicodes = coreUnicode . getNormalizedUnicodes ;
var reverseIfRtl = coreUnicode . reverseIfRtl ;
var getUnicodeForGlyph = coreUnicode . getUnicodeForGlyph ;
var getGlyphsUnicode = coreGlyphList . getGlyphsUnicode ;
var PartialEvaluator = ( function PartialEvaluatorClosure ( ) {
var PartialEvaluator = ( function PartialEvaluatorClosure ( ) {
const DefaultPartialEvaluatorOptions = {
const DefaultPartialEvaluatorOptions = {
@ -3439,6 +3377,7 @@ var QueueOptimizer = (function QueueOptimizerClosure() {
return QueueOptimizer ;
return QueueOptimizer ;
} ) ( ) ;
} ) ( ) ;
exports . OperatorList = OperatorList ;
export {
exports . PartialEvaluator = PartialEvaluator ;
OperatorList ,
} ) ) ;
PartialEvaluator ,
} ;