ToUnicodeProcessingRules

Inheritance: java.lang.Object

public class ToUnicodeProcessingRules

This class describes rules which can be used to solve Adobe Preflight error “Text cannot be mapped to Unicode”.

Constructors

ConstructorDescription
ToUnicodeProcessingRules()Constructor
ToUnicodeProcessingRules(boolean removeSpaces)Constructor
ToUnicodeProcessingRules(boolean removeSpaces, boolean mapNonLinkedUnicodesOnSpace)Constructor

Methods

MethodDescription
getRemoveSpacesFromCMapNames()Some fonts have ToUnicode character code maps with spaces in names.
setRemoveSpacesFromCMapNames(boolean value)Some fonts have ToUnicode character code maps with spaces in names.
getMapNonLinkedSymbolsOnSpace()Some fonts doesn’t provide information about unicodes for some text symbols.
setMapNonLinkedSymbolsOnSpace(boolean value)Some fonts doesn’t provide information about unicodes for some text symbols.

ToUnicodeProcessingRules()

public ToUnicodeProcessingRules()

Constructor

ToUnicodeProcessingRules(boolean removeSpaces)

public ToUnicodeProcessingRules(boolean removeSpaces)

Constructor

Parameters:

ParameterTypeDescription
removeSpacesbooleansets RemoveSpacesFromCMapNames flag

ToUnicodeProcessingRules(boolean removeSpaces, boolean mapNonLinkedUnicodesOnSpace)

public ToUnicodeProcessingRules(boolean removeSpaces, boolean mapNonLinkedUnicodesOnSpace)

Constructor

Parameters:

ParameterTypeDescription
removeSpacesbooleansets RemoveSpacesFromCMapNames flag
mapNonLinkedUnicodesOnSpacebooleansets MapNonLinkedSymbolsOnSpace flag

getRemoveSpacesFromCMapNames()

public boolean getRemoveSpacesFromCMapNames()

Some fonts have ToUnicode character code maps with spaces in names. These spaces could call errors with unicode text mapping. This flag commands to remove spaces from names of ToUnicode character code maps. By default false.

Returns: boolean - boolean value

setRemoveSpacesFromCMapNames(boolean value)

public void setRemoveSpacesFromCMapNames(boolean value)

Some fonts have ToUnicode character code maps with spaces in names. These spaces could call errors with unicode text mapping. This flag commands to remove spaces from names of ToUnicode character code maps. By default false.

Parameters:

ParameterTypeDescription
valuebooleanboolean value

getMapNonLinkedSymbolsOnSpace()

public boolean getMapNonLinkedSymbolsOnSpace()

Some fonts doesn’t provide information about unicodes for some text symbols. This lack of information calls an error “Text cannot be mapped to Unicode”. Use this flag to map non-linked symbols on unicode “space”(code 32).

Returns: boolean - boolean value

setMapNonLinkedSymbolsOnSpace(boolean value)

public void setMapNonLinkedSymbolsOnSpace(boolean value)

Some fonts doesn’t provide information about unicodes for some text symbols. This lack of information calls an error “Text cannot be mapped to Unicode”. Use this flag to map non-linked symbols on unicode “space”(code 32).

Parameters:

ParameterTypeDescription
valuebooleanboolean value