Versions in this module Expand all Collapse all v1 v1.2.0 Aug 8, 2023 v1.1.0 Aug 8, 2023 Changes in this version + const MissingCodeRune + var ErrBadCMap = errors.New("bad cmap") + var ErrBadCMapComment = errors.New("comment should start with %") + var ErrBadCMapDict = errors.New("invalid dict") + func IsPredefinedCMap(name string) bool + type CIDSystemInfo struct + Ordering string + Registry string + Supplement int + func NewCIDSystemInfo(obj core.PdfObject) (info CIDSystemInfo, err error) + func (info *CIDSystemInfo) String() string + type CMap struct + func LoadCmapFromData(data []byte, isSimple bool) (*CMap, error) + func LoadCmapFromDataCID(data []byte) (*CMap, error) + func LoadPredefinedCMap(name string) (*CMap, error) + func NewToUnicodeCMap(codeToUnicode map[CharCode]rune) *CMap + func (cmap *CMap) Bytes() []byte + func (cmap *CMap) BytesToCharcodes(data []byte) ([]CharCode, bool) + func (cmap *CMap) CIDToCharcode(cid CharCode) (CharCode, bool) + func (cmap *CMap) CharcodeBytesToUnicode(data []byte) (string, int) + func (cmap *CMap) CharcodeToCID(code CharCode) (CharCode, bool) + func (cmap *CMap) CharcodeToUnicode(code CharCode) (rune, bool) + func (cmap *CMap) NBits() int + func (cmap *CMap) Name() string + func (cmap *CMap) RuneToCID(r rune) (CharCode, bool) + func (cmap *CMap) String() string + func (cmap *CMap) Type() int + type CharCode uint32 + type Codespace struct + High CharCode + Low CharCode + NumBytes int