Table of Contents

Class CMapToUnicode

Namespace
iText.IO.Font.Cmap
Assembly
itext.io.dll

This class represents a CMap file.

public class CMapToUnicode : AbstractCMap
Inheritance
CMapToUnicode
Inherited Members

Constructors

CMapToUnicode()

Creates a new instance of CMap.

public CMapToUnicode()

Fields

EmptyCMapToUnicodeMap

public static CMapToUnicode EmptyCMapToUnicodeMap

Field Value

CMapToUnicode

Methods

CreateDirectMapping()

public virtual IntHashtable CreateDirectMapping()

Returns

IntHashtable

CreateReverseMapping()

public virtual IDictionary<int, int?> CreateReverseMapping()

Returns

IDictionary<int, int?>

GetCodeSpaceRanges()

Returns a list containing sequential pairs of code space beginning and endings: (begincodespacerange1, endcodespacerange1, begincodespacerange2, endcodespacerange1, ...)

public virtual IList<byte[]> GetCodeSpaceRanges()

Returns

IList<byte[]>

list of byte[] that contain code space ranges

GetCodes()

public virtual ICollection<int> GetCodes()

Returns

ICollection<int>

GetIdentity()

public static CMapToUnicode GetIdentity()

Returns

CMapToUnicode

HasByteMappings()

This will tell if this cmap has any two byte mappings.

public virtual bool HasByteMappings()

Returns

bool

true If there are any two byte mappings, false otherwise.

Lookup(byte[])

public virtual char[] Lookup(byte[] code)

Parameters

code byte[]

Returns

char[]

Lookup(byte[], int, int)

This will perform a lookup into the map.

public virtual char[] Lookup(byte[] code, int offset, int length)

Parameters

code byte[]

The code used to lookup.

offset int

The offset into the byte array.

length int

The length of the data we are getting.

Returns

char[]

The string that matches the lookup.

Lookup(int)

public virtual char[] Lookup(int code)

Parameters

code int

Returns

char[]