public class ToUnicodeProcessingRules extends Object
This class describes rules which can be used to solve Adobe Preflight error "Text cannot be mapped to Unicode".
Constructor and Description |
---|
ToUnicodeProcessingRules()
Initializes a new instance of the
ToUnicodeProcessingRules class. |
ToUnicodeProcessingRules(boolean removeSpaces)
Initializes a new instance of the
ToUnicodeProcessingRules class with the specified option
to remove spaces from CMap names. |
ToUnicodeProcessingRules(boolean removeSpaces,
boolean mapNonLinkedUnicodesOnSpace)
Initializes a new instance of the
ToUnicodeProcessingRules class with specified options. |
Modifier and Type | Method and Description |
---|---|
boolean |
getMapNonLinkedSymbolsOnSpace()
Some fonts doesn't provide information about unicodes for some text symbols.
|
boolean |
getRemoveSpacesFromCMapNames()
Some fonts have ToUnicode character code maps with spaces in names.
|
void |
setMapNonLinkedSymbolsOnSpace(boolean value)
Some fonts doesn't provide information about unicodes for some text symbols.
|
void |
setRemoveSpacesFromCMapNames(boolean value)
Some fonts have ToUnicode character code maps with spaces in names.
|
public ToUnicodeProcessingRules()
Initializes a new instance of the ToUnicodeProcessingRules
class.
public ToUnicodeProcessingRules(boolean removeSpaces)
Initializes a new instance of the ToUnicodeProcessingRules
class with the specified option
to remove spaces from CMap names.
removeSpaces
- A boolean value indicating whether to remove spaces from CMap names.public ToUnicodeProcessingRules(boolean removeSpaces, boolean mapNonLinkedUnicodesOnSpace)
Initializes a new instance of the ToUnicodeProcessingRules
class with specified options.
removeSpaces
- Indicates whether spaces should be removed from CMap names.mapNonLinkedUnicodesOnSpace
- Indicates whether non-linked Unicode symbols should be mapped to spaces.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.
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.
value
- boolean valuepublic 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).
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).
value
- boolean valueCopyright © 2025 Aspose. All Rights Reserved.