com.groupdocs.metadata.core

Interfaces

Classes

Exceptions

com.groupdocs.metadata.core

Class SpreadsheetInspectionPackage

  • All Implemented Interfaces:
    Iterable<MetadataProperty>


    public final class SpreadsheetInspectionPackage
    extends CustomPackage

    Contains information about spreadsheet parts that can be considered as metadata in some cases.

    • Method Detail

      • getComments

        public final SpreadsheetComment[] getComments()

        Gets an array of the user comments.

        Returns:
        The user comments.
      • getHiddenSheets

        public final SpreadsheetSheet[] getHiddenSheets()

        Gets an array of the hidden sheets.

        Returns:
        The hidden sheets.
      • getDigitalSignatures

        public final DigitalSignature[] getDigitalSignatures()

        Gets an array of digital signatures presented in the document.

        Returns:
        The digital signatures.
      • removeProperties

        public int removeProperties(Specification specification)

        Removes metadata properties satisfying a specification.

        Overrides:
        removeProperties in class MetadataPackage
        Parameters:
        specification - A specification to test each metadata property for a condition.
        Returns:
        The number of affected properties.
      • clearComments

        public final void clearComments()

        Removes all detected user comments from the spreadsheet.

      • clearHiddenSheets

        public final void clearHiddenSheets()

        Removes all detected hidden sheets from the spreadsheet.

      • clearDigitalSignatures

        public final void clearDigitalSignatures()

        Removes all detected digital signatures from the spreadsheet.

      • sanitize

        public int sanitize()

        Removes writable metadata properties from the package. The operation is recursive so it affects all nested packages as well.

        Overrides:
        sanitize in class MetadataPackage
        Returns:
        The number of affected properties.