iText 8.0.5 API
iText.IO.Font.Cmap.CMapToUnicode Class Reference

This class represents a CMap file. More...

Inheritance diagram for iText.IO.Font.Cmap.CMapToUnicode:
iText.IO.Font.Cmap.AbstractCMap

Public Member Functions

  CMapToUnicode ()
  Creates a new instance of CMap. More...
 
virtual bool  HasByteMappings ()
  This will tell if this cmap has any two byte mappings. More...
 
virtual char[]  Lookup (byte[] code, int offset, int length)
  This will perform a lookup into the map. More...
 
virtual char[]  Lookup (byte[] code)
 
virtual char[]  Lookup (int code)
 
virtual ICollection< int >  GetCodes ()
 
virtual IntHashtable  CreateDirectMapping ()
 
virtual IDictionary< int, int?>  CreateReverseMapping ()
 
virtual IList< byte[]>  GetCodeSpaceRanges ()
  Returns a list containing sequential pairs of code space beginning and endings: (begincodespacerange1, endcodespacerange1, begincodespacerange2, endcodespacerange1, ...) More...
 
- Public Member Functions inherited from iText.IO.Font.Cmap.AbstractCMap
virtual String  GetName ()
 
virtual String  GetOrdering ()
 
virtual String  GetRegistry ()
 
virtual int  GetSupplement ()
 

Static Public Member Functions

static iText.IO.Font.Cmap.CMapToUnicode  GetIdentity ()
 
- Static Public Member Functions inherited from iText.IO.Font.Cmap.AbstractCMap
static byte[]  DecodeStringToByte (String range)
 

Static Public Attributes

static iText.IO.Font.Cmap.CMapToUnicode  EmptyCMapToUnicodeMap
 

Additional Inherited Members

- Package Functions inherited from iText.IO.Font.Cmap.AbstractCMap
virtual String  ToUnicodeString (String value, bool isHexWriting)
 

Detailed Description

This class represents a CMap file.

Constructor & Destructor Documentation

◆ CMapToUnicode()

iText.IO.Font.Cmap.CMapToUnicode.CMapToUnicode ( )
inline

Creates a new instance of CMap.

Member Function Documentation

◆ GetCodeSpaceRanges()

virtual IList iText.IO.Font.Cmap.CMapToUnicode.GetCodeSpaceRanges ( )
inlinevirtual

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

Returns
list of byte[] that contain code space ranges

◆ HasByteMappings()

virtual bool iText.IO.Font.Cmap.CMapToUnicode.HasByteMappings ( )
inlinevirtual

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

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

◆ Lookup()

virtual char [] iText.IO.Font.Cmap.CMapToUnicode.Lookup ( byte[]  code,
int  offset,
int  length 
)
inlinevirtual

This will perform a lookup into the map.

Parameters
code The code used to lookup.
offset The offset into the byte array.
length The length of the data we are getting.
Returns
The string that matches the lookup.

Member Data Documentation

◆ EmptyCMapToUnicodeMap

iText.IO.Font.Cmap.CMapToUnicode iText.IO.Font.Cmap.CMapToUnicode.EmptyCMapToUnicodeMap
static
Initial value:
(true)
iText.IO
Definition: BitFile.cs:25
iText.IO.Font.Cmap.CMapToUnicode
This class represents a CMap file.
Definition: CMapToUnicode.cs:32
iText.IO.Font
Definition: AdobeGlyphList.cs:30
iText.IO.Font.Cmap
Definition: AbstractCMap.cs:27
iText
Definition: Barcode128.cs:35