PdfInspectionPackage
Inheritance: java.lang.Object, com.groupdocs.metadata.core.MetadataPackage, com.groupdocs.metadata.core.CustomPackage
public final class PdfInspectionPackage extends CustomPackage
Contains information about PDF document parts that can be considered as metadata in some cases.
Learn more
Methods
Method | Description |
---|---|
getAnnotations() | Gets an array of the annotations. |
getAttachments() | Gets an array of the attachments. |
getBookmarks() | Gets an array of the bookmarks. |
getFields() | Gets an array of the form fields. |
getDigitalSignatures() | Gets an array of the digital signatures. |
removeProperties(Specification specification) | Removes metadata properties satisfying a specification. |
sanitize() | Removes writable metadata properties from the package. |
clearAnnotations() | Removes all detected annotations from the document. |
clearAttachments() | Removes all detected attachments from the document. |
clearBookmarks() | Removes all detected bookmarks from the document. |
clearFields() | Removes all detected form fields from the document. |
clearDigitalSignatures() | Removes all detected digital signatures from the document. |
getAnnotations()
public final PdfAnnotation[] getAnnotations()
Gets an array of the annotations.
Returns: com.groupdocs.metadata.core.PdfAnnotation[] - An array of the annotations.
getAttachments()
public final PdfAttachment[] getAttachments()
Gets an array of the attachments.
Returns: com.groupdocs.metadata.core.PdfAttachment[] - An array of the attachments.
getBookmarks()
public final PdfBookmark[] getBookmarks()
Gets an array of the bookmarks.
Returns: com.groupdocs.metadata.core.PdfBookmark[] - An array of the bookmarks.
getFields()
public final PdfFormField[] getFields()
Gets an array of the form fields.
Returns: com.groupdocs.metadata.core.PdfFormField[] - An array of the form fields.
getDigitalSignatures()
public final DigitalSignature[] getDigitalSignatures()
Gets an array of the digital signatures.
Returns: com.groupdocs.metadata.core.DigitalSignature[] - An array of the digital signatures.
removeProperties(Specification specification)
public int removeProperties(Specification specification)
Removes metadata properties satisfying a specification.
Parameters:
Parameter | Type | Description |
---|---|---|
specification | Specification | A specification to test each metadata property for a condition. |
Returns: int - 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.
Returns: int - 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.