com.groupdocs.metadata.core

Interfaces

Classes

Exceptions

com.groupdocs.metadata.core

Class PdfInspectionPackage

  • All Implemented Interfaces:
    Iterable<MetadataProperty>


    public final class PdfInspectionPackage
    extends CustomPackage

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

    • Method Detail

      • getAnnotations

        public final PdfAnnotation[] getAnnotations()

        Gets an array of the annotations.

        Returns:
        An array of the annotations.
      • getAttachments

        public final PdfAttachment[] getAttachments()

        Gets an array of the attachments.

        Returns:
        An array of the attachments.
      • getBookmarks

        public final PdfBookmark[] getBookmarks()

        Gets an array of the bookmarks.

        Returns:
        An array of the bookmarks.
      • getFields

        public final PdfFormField[] getFields()

        Gets an array of the form fields.

        Returns:
        An array of the form fields.
      • getDigitalSignatures

        public final DigitalSignature[] getDigitalSignatures()

        Gets an array of the digital signatures.

        Returns:
        An array of 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.
      • 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.
      • clearAnnotations

        public final void clearAnnotations()

        Removes all detected annotations from the document.

      • clearAttachments

        public final void clearAttachments()

        Removes all detected attachments from the document.

      • clearBookmarks

        public final void clearBookmarks()

        Removes all detected bookmarks from the document.

      • clearFields

        public final void clearFields()

        Removes all detected form fields from the document.

      • clearDigitalSignatures

        public final void clearDigitalSignatures()

        Removes all detected digital signatures from the document.