com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Interface IFontOptions



  • public interface IFontOptions

    Useful properties to tune Font behavior

    • Method Detail

      • getNotifyAboutFontEmbeddingError

        boolean getNotifyAboutFontEmbeddingError()
        Sometimes it's not possible to embed desired font into document. There are many reasons, for example license restrictions or when desired font was not found on destination computer. When this situation comes it's not simply to detect, because desired font is embedded via set of property flag Font.IsEmbedded = true; Of course it's possible to read this property immediately after it was set but it's not convenient approach. Flag NotifyAboutFontEmbeddingError enforces exception mechanism for cases when attempt to embed font became failed. If this flag is set an exception of type FontEmbeddingException will be thrown. By default false.
        Returns:
        boolean value
        See Also:
        FontEmbeddingException
      • setNotifyAboutFontEmbeddingError

        void setNotifyAboutFontEmbeddingError(boolean value)
        Sometimes it's not possible to embed desired font into document. There are many reasons, for example license restrictions or when desired font was not found on destination computer. When this situation comes it's not simply to detect, because desired font is embedded via set of property flag Font.IsEmbedded = true; Of course it's possible to read this property immediately after it was set but it's not convenient approach. Flag NotifyAboutFontEmbeddingError enforces exception mechanism for cases when attempt to embed font became failed. If this flag is set an exception of type FontEmbeddingException will be thrown. By default false.
        Parameters:
        value - boolean value
        See Also:
        FontEmbeddingException