Code Page File Map

AFP2PDF Transform provides one code page map file for each AFP code page supplied with Print Services Facility (PSF) and the Data1 and Sonoran licensed programs. These files are installed in the \font\maps subdirectory.
The file is named for its code page global identifier (CPGID) and has a file extension of .cp (for example, if 2063.cp is the file name for the T1D0BASE code page map; its CPGID is 2063). Each file contains the character identifiers (and associated EBCDIC hexadecimal code points) for an AFP code page and maps them to character identifiers (and associated ASCII code points) for an ANSI or SYMBOL PDF encoding.

Code page map file example shows an example of the contents of the code page map file 395.cp for the T1000395 code page mapped to the ANSI encoding.

Code page map file example

;T1000395 to ANSI
SP010000 40 SP010000 20
LA150000 42 LA150000 E2
LA170000 43 LA170000 E4
LA130000 44 LA130000 E0
SP180000 8B SP180000 BB
SM560000 8C SM560000 89
SA000000 8D SP100000 2D
LI510000 8E NOMATCH 00
LF570000 8F NOMATCH 00
SM190000 90 SM190000 B0
LJ010000 91 LJ010000 6A
LF510000 A0 NOMATCH 00
;;;;;;;; ; SD150000 5E
;;;;;;;; ; SD130000 60
;;;;;;;; ; LT630000 FE

Syntax rules

  • Blanks must separate character identifiers.

  • NOMATCH means there is not a matching character in the output character set.

  • The NOMATCH hexadecimal code of 00 is mapped to the undefined code point. When a document contains a character that does not exist in the output character set, that character cannot be displayed. If the character has not been remapped in the code page map file or the alias file, the undefined code point character is displayed as a substitute.

  • The string of semicolons (;;;;;;;;;) means this line is ignored as a comment. It also indicates that the output code page contains a character that does not exist in the AFP code page. The code point for a character not found in the AFP code page can be used for replacing NOMATCH characters.

    • If the input code point maps to NOMATCH 00, and the corresponding AFP code page and character set resources are available (inline or in a resource directory), the transform extracts the raster character from the AFP font and places it as an image in the PDF output.