public class CMap extends Object
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name of the CMap.
|
String |
getOrdering()
Returns the ordering of the CIDSystemInfo.
|
String |
getRegistry()
Returns the registry of the CIDSystemInfo.
|
int |
getSpaceMapping()
Returns the mapping for the space character.
|
int |
getSupplement()
Returns the supplement of the CIDSystemInfo.
|
int |
getType()
Returns the type of the CMap.
|
String |
getVersion()
Returns the version of the CMap.
|
int |
getWMode()
Returns the WMode of a CMap.
0 represents a horizontal and 1 represents a vertical orientation.
|
boolean |
hasCIDMappings()
This will tell if this cmap has any CID mappings.
|
boolean |
hasUnicodeMappings()
This will tell if this cmap has any Unicode mappings.
|
int |
readCode(InputStream in)
Reads a character code from a string in the content stream.
|
void |
setName(String name)
Sets the name of the CMap.
|
void |
setOrdering(String newOrdering)
Sets the ordering of the CIDSystemInfo.
|
void |
setRegistry(String newRegistry)
Sets the registry of the CIDSystemInfo.
|
void |
setSupplement(int newSupplement)
Sets the supplement of the CIDSystemInfo.
|
void |
setType(int type)
Sets the type of the CMap.
|
void |
setVersion(String version)
Sets the version of the CMap.
|
void |
setWMode(int newWMode)
Sets the WMode of a CMap.
|
int |
toCID(int code)
Returns the CID for the given character code.
|
String |
toString() |
String |
toUnicode(int code)
Returns the sequence of Unicode characters for the given character code.
|
public boolean hasCIDMappings()
public boolean hasUnicodeMappings()
public String toUnicode(int code)
code
- character codepublic int readCode(InputStream in) throws IOException
See "CMap Mapping" and "Handling Undefined Characters" in PDF32000 for more details.
in
- string streamIOException
- if there was an error reading the stream or CMappublic int toCID(int code)
code
- character codepublic int getWMode()
public void setWMode(int newWMode)
newWMode
- the new WMode.public String getName()
public void setName(String name)
name
- the CMap name.public String getVersion()
public void setVersion(String version)
version
- the CMap version.public int getType()
public void setType(int type)
type
- the CMap type.public String getRegistry()
public void setRegistry(String newRegistry)
newRegistry
- the registry.public String getOrdering()
public void setOrdering(String newOrdering)
newOrdering
- the ordering.public int getSupplement()
public void setSupplement(int newSupplement)
newSupplement
- the supplement.public int getSpaceMapping()
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.