@ -1619,8 +1619,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
} ) ;
} ) ;
} ,
} ,
extractDataStructures : function
extractDataStructures :
partialEvaluatorE xtractDataStructures( dict , baseDict ,
function PartialEvaluator _e xtractDataStructures ( dict , baseDict ,
xref , properties ) {
xref , properties ) {
// 9.10.2
// 9.10.2
var toUnicode = ( dict . get ( 'ToUnicode' ) || baseDict . get ( 'ToUnicode' ) ) ;
var toUnicode = ( dict . get ( 'ToUnicode' ) || baseDict . get ( 'ToUnicode' ) ) ;
@ -1723,9 +1723,10 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
/ * *
/ * *
* Builds a char code to unicode map based on section 9.10 of the spec .
* Builds a char code to unicode map based on section 9.10 of the spec .
* @ param { Object } properties Font properties object .
* @ param { Object } properties Font properties object .
* @ return { Promise } A Promise resolving to ToUnicodeMap object .
* @ return { Promise } A Promise that is resolved with a
* { ToUnicodeMap | IdentityToUnicodeMap } object .
* /
* /
buildToUnicode : function p artialEvaluator_buildToUnicode ( properties ) {
buildToUnicode : function P artialEvaluator_buildToUnicode ( properties ) {
// Section 9.10.2 Mapping Character Codes to Unicode Values
// Section 9.10.2 Mapping Character Codes to Unicode Values
if ( properties . toUnicode && properties . toUnicode . length !== 0 ) {
if ( properties . toUnicode && properties . toUnicode . length !== 0 ) {
return Promise . resolve ( properties . toUnicode ) ;
return Promise . resolve ( properties . toUnicode ) ;
@ -1826,7 +1827,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
// c) Construct a second CMap name by concatenating the registry and
// c) Construct a second CMap name by concatenating the registry and
// ordering obtained in step (b) in the format registry–ordering–UCS2
// ordering obtained in step (b) in the format registry–ordering–UCS2
// (for example, Adobe–Japan1–UCS2).
// (for example, Adobe–Japan1–UCS2).
var ucs2CMapName = new Name ( registry + '-' + ordering + '-UCS2' ) ;
var ucs2CMapName = Name . get ( registry + '-' + ordering + '-UCS2' ) ;
// d) Obtain the CMap with the name constructed in step (c) (available
// d) Obtain the CMap with the name constructed in step (c) (available
// from the ASN Web site; see the Bibliography).
// from the ASN Web site; see the Bibliography).
return CMapFactory . create ( ucs2CMapName , this . options . cMapOptions ,
return CMapFactory . create ( ucs2CMapName , this . options . cMapOptions ,