Documentation
¶
Index ¶
- func Utf8CodepointToUtf8(utf8Codepoint uint) string
- type CMap
- func (cmap *CMap) CharcodeBytesToCidStr(src []byte) string
- func (cmap *CMap) CharcodeBytesToUnicode(src []byte, simpleEncoding []uint, flag bool) string
- func (cmap *CMap) CharcodeToUnicode(srcCode uint64) string
- func (c *CMap) GetCodeMap() map[uint64]string
- func (cmap *CMap) Name() string
- func (cmap *CMap) Type() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Utf8CodepointToUtf8 ¶
Types ¶
type CMap ¶
type CMap struct {
// contains filtered or unexported fields
}
CMap represents a character code to unicode mapping used in PDF files.
func LoadCmapFromData ¶
LoadCmapFromData parses CMap data in memory through a byte vector and returns a CMap which can be used for character code to unicode conversion.
func (*CMap) CharcodeBytesToCidStr ¶
CharcodeBytesToUnicode converts a byte array of charcodes to a unicode string representation.
func (*CMap) CharcodeBytesToUnicode ¶
CharcodeBytesToUnicode converts a byte array of charcodes to a unicode string representation.
func (*CMap) CharcodeToUnicode ¶
CharcodeToUnicode converts a single character code to unicode string.
func (*CMap) GetCodeMap ¶
Click to show internal directories.
Click to hide internal directories.