phpdftk API Documentation

PredefinedCMap
in package

FinalYes

Predefined CMap names for CJK font encoding — ISO 32000-2 §9.7.5.

These CMap names are built into conforming PDF viewers and don't need to be embedded as CMap streams. They map character codes to CIDs for the four Adobe CJK character collections.

Use these with Type0Font as the /Encoding value when working with CJK fonts that follow the standard Adobe CID collections.

Table of Contents

Constants

CNS_BIG5_H  = 'ETen-B5-H'
CNS_BIG5_V  = 'ETen-B5-V'
CNS_UCS2_H  = 'UniCNS-UCS2-H'
CNS_UCS2_V  = 'UniCNS-UCS2-V'
CNS_UTF16_H  = 'UniCNS-UTF16-H'
CNS_UTF16_V  = 'UniCNS-UTF16-V'
GB_GBK_H  = 'GBK-EUC-H'
GB_GBK_V  = 'GBK-EUC-V'
GB_UCS2_H  = 'UniGB-UCS2-H'
GB_UCS2_V  = 'UniGB-UCS2-V'
GB_UTF16_H  = 'UniGB-UTF16-H'
GB_UTF16_V  = 'UniGB-UTF16-V'
IDENTITY_H  = 'Identity-H'
IDENTITY_V  = 'Identity-V'
JAPAN_EUC  = '83pv-RKSJ-H'
JAPAN_SJIS_H  = '90ms-RKSJ-H'
JAPAN_SJIS_V  = '90ms-RKSJ-V'
JAPAN_UCS2_H  = 'UniJIS-UCS2-H'
JAPAN_UCS2_V  = 'UniJIS-UCS2-V'
JAPAN_UTF16_H  = 'UniJIS-UTF16-H'
JAPAN_UTF16_V  = 'UniJIS-UTF16-V'
KOREA_UCS2_H  = 'UniKS-UCS2-H'
KOREA_UCS2_V  = 'UniKS-UCS2-V'
KOREA_UHC_H  = 'KSCms-UHC-H'
KOREA_UHC_V  = 'KSCms-UHC-V'
KOREA_UTF16_H  = 'UniKS-UTF16-H'
KOREA_UTF16_V  = 'UniKS-UTF16-V'

Methods

getCIDSystemInfo()  : array{registry: string, ordering: string, supplement: int}|null
Get the CIDSystemInfo registry/ordering/supplement for a CMap name.
isPredefined()  : bool
Check if a CMap name is a predefined CMap (built into PDF viewers).

Constants

Methods

getCIDSystemInfo()

Get the CIDSystemInfo registry/ordering/supplement for a CMap name.

public static getCIDSystemInfo(string $cmapName) : array{registry: string, ordering: string, supplement: int}|null
Parameters
$cmapName : string
Return values
array{registry: string, ordering: string, supplement: int}|null

isPredefined()

Check if a CMap name is a predefined CMap (built into PDF viewers).

public static isPredefined(string $cmapName) : bool
Parameters
$cmapName : string
Return values
bool

        
On this page

Search results