ToUnicodeProcessingRules

Inheritance: java.lang.Object, com.aspose.pdf.ToUnicodeProcessingRules

public class ToUnicodeProcessingRules extends Object

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

Constructors

ConstructorDescription
ToUnicodeProcessingRulesInitializes a new instance of the {@link ToUnicodeProcessingRules} class.
ToUnicodeProcessingRulesInitializes a new instance of the {@link ToUnicodeProcessingRules} class with the specified option to remove spaces from CMap names.
ToUnicodeProcessingRulesInitializes a new instance of the {@link ToUnicodeProcessingRules} class with specified options.

Methods

MethodDescription
getMapNonLinkedSymbolsOnSpaceSome 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).
getRemoveSpacesFromCMapNamesSome 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.
setMapNonLinkedSymbolsOnSpaceSome 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).
setRemoveSpacesFromCMapNamesSome 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.

ToUnicodeProcessingRules

public ToUnicodeProcessingRules()

Initializes a new instance of the {@link ToUnicodeProcessingRules} class.

ToUnicodeProcessingRules

public ToUnicodeProcessingRules(boolean removeSpaces)

Initializes a new instance of the {@link ToUnicodeProcessingRules} class with the specified option to remove spaces from CMap names.

Parameters:

ParameterTypeDescription
removeSpacesA boolean value indicating whether to remove spaces from CMap names.

ToUnicodeProcessingRules

public ToUnicodeProcessingRules(boolean removeSpaces, boolean mapNonLinkedUnicodesOnSpace)

Initializes a new instance of the {@link ToUnicodeProcessingRules} class with specified options.

Parameters:

ParameterTypeDescription
removeSpacesIndicates whether spaces should be removed from CMap names.
mapNonLinkedUnicodesOnSpaceIndicates whether non-linked Unicode symbols should be mapped to spaces.

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 value

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 value

setMapNonLinkedSymbolsOnSpace

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
valueboolean value

setRemoveSpacesFromCMapNames

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
valueboolean value