com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class OpenTypeFormat

    • Constructor Detail

      • OpenTypeFormat

        public OpenTypeFormat(String filePath)

        Initializes a new instance of the OpenTypeFormat class.

        Parameters:
        filePath - The absolute path to the file.
      • OpenTypeFormat

        public OpenTypeFormat(InputStream input)
    • Method Detail

      • getType

        public int getType()

        Gets the document type.

        Specified by:
        getType in class FormatBase
        Returns:
        The document type.
      • 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 or resets metadata.


        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 ftp://ftp.rsa.com/pub/pkcs/ascii/pkcs-7.asc. For more information about counter-signatures, see ftp://ftp.rsa.com/pub/pkcs/ascii/pkcs-9.asc.

      • getFontInfo

        public final OpenTypeMetadata[] getFontInfo()

        Gets the OpenType font metadata array.

        Returns:
        The OpenType font metadata array.
      • 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.