com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class OpenTypeFormat

    • Constructor Detail

      • OpenTypeFormat

        public OpenTypeFormat(String fileName)

        Initializes a new instance of the OpenTypeFormat class.

        Parameters:
        fileName - A string that contains the full name of the file from which to create an OpenTypeFormat instance.
      • OpenTypeFormat

        public OpenTypeFormat(InputStream input)
    • Method Detail

      • getType

        public int getType()

        Gets the type of the loaded file.

        Specified by:
        getType in class FormatBase
        Returns:
        The type of the loaded file.
      • hasDigitalSignatures

        public final boolean hasDigitalSignatures()

        Gets a value indicating whether the document contains a DigitalSignature.

        Specified by:
        hasDigitalSignatures in interface ISignedFormat
        Returns:
        true if the document has digital signatures; otherwise, false.
      • cleanMetadata

        public void cleanMetadata()

        Removes writable metadata properties associated with the file. Metadata cleaning is not supported for this format.

        Overrides:
        cleanMetadata in class FormatBase
      • getDigitalSignatureFlags

        public final Integer getDigitalSignatureFlags()

        Gets the digital signature flags.

        Returns:
        The digital signature flags.
      • getDigitalSignatures

        public final Cms[] getDigitalSignatures()

        Gets the PKCS#7 or PKCS#9 packet digital signature Blocks.

        Returns:
        The PKCS#7 or PKCS#9 packet digital signature Blocks.


        For more information about PKCS#7 signatures, see <a href="ftp://ftp.rsa.com/pub/pkcs/ascii/pkcs-7.asc">ftp://ftp.rsa.com/pub/pkcs/ascii/pkcs-7.asc</a>. For more information about counter-signatures, see <a href="ftp://ftp.rsa.com/pub/pkcs/ascii/pkcs-9.asc">ftp://ftp.rsa.com/pub/pkcs/ascii/pkcs-9.asc</a>.

      • getFontInfo

        public final OpenTypeMetadata[] getFontInfo()

        Gets an array containing the OpenType font metadata package.

        Returns:
        An array containing the OpenType font metadata package.
      • dispose

        protected void dispose(boolean disposing)

        Releases unmanaged and optionally managed resources.

        Overrides:
        dispose in class FormatBase
        Parameters:
        disposing - true to release both managed and unmanaged resources; false to release only unmanaged resources.