com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class 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".

    • Constructor Detail

      • ToUnicodeProcessingRules

        public ToUnicodeProcessingRules()

        Constructor

      • ToUnicodeProcessingRules

        public ToUnicodeProcessingRules(boolean removeSpaces)

        Constructor

        Parameters:
        removeSpaces - sets RemoveSpacesFromCMapNames flag
      • ToUnicodeProcessingRules

        public ToUnicodeProcessingRules(boolean removeSpaces,
                                        boolean mapNonLinkedUnicodesOnSpace)

        Constructor

        Parameters:
        removeSpaces - sets RemoveSpacesFromCMapNames flag
        mapNonLinkedUnicodesOnSpace - sets MapNonLinkedSymbolsOnSpace flag
    • Method Detail

      • 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
      • 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:
        value - boolean 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 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:
        value - boolean value