public class CMapEncoding extends Object
| Constructor and Description |
|---|
CMapEncoding(String cmap)
Creates a new CMap encoding.
|
CMapEncoding(String cmap,
byte[] cmapBytes)
Creates a new CMap encoding.
|
CMapEncoding(String cmap,
String uniMap)
Creates a new CMap encoding.
|
| Modifier and Type | Method and Description |
|---|---|
int |
fillCmapBytes(int cid,
byte[] array,
int offset) |
void |
fillCmapBytes(int cid,
ByteBuffer buffer) |
int |
getCidCode(int cmapCode) |
byte[] |
getCmapBytes(int cid)
Gets CMap bytes by CID.
|
int |
getCmapBytesLength(int cid) |
String |
getCmapName()
Gets CMap name.
|
List<byte[]> |
getCodeSpaceRanges() |
String |
getOrdering()
Gets string that uniquely names the character collection within the specified registry.
|
String |
getRegistry()
Gets string identifying the issuer of the character collection.
|
int |
getSupplement()
Gets the supplement number of the character collection
|
String |
getUniMapName()
Gets CMap name which converts Unicode value to CID.
|
boolean |
hasUniMap()
Checks if CMap to convert Unicode value to CID is present.
|
boolean |
isBuiltWith(String cmap)
Checks whether the
CMapEncoding was built with corresponding cmap name. |
boolean |
isDirect()
Checks if CMap is direct or indirect pdf object
|
public CMapEncoding(String cmap)
cmap - CMap namepublic CMapEncoding(String cmap, String uniMap)
cmap - CMap nameuniMap - CMap to convert Unicode value to CIDpublic CMapEncoding(String cmap, byte[] cmapBytes)
cmap - CMap namecmapBytes - CMap binary datapublic boolean isDirect()
true if direct, false otherwisepublic boolean hasUniMap()
true if present, false otherwisepublic String getRegistry()
public String getOrdering()
public int getSupplement()
public String getUniMapName()
public String getCmapName()
public boolean isBuiltWith(String cmap)
CMapEncoding was built with corresponding cmap name.cmap - a CMAPtrue, if the CMapEncoding was built with the cmap, false otherwise.public byte[] getCmapBytes(int cid)
cid - id of the CMappublic int fillCmapBytes(int cid,
byte[] array,
int offset)
public void fillCmapBytes(int cid,
ByteBuffer buffer)
public int getCmapBytesLength(int cid)
public int getCidCode(int cmapCode)
public List<byte[]> getCodeSpaceRanges()
Copyright © 1998–2025 Apryse Group NV. All rights reserved.