public final class PdfInspectionPackage extends CustomPackage
Contains information about PDF document parts that can be considered as metadata in some cases.
Learn more
Modifier and Type | Method and Description |
---|---|
void |
clearAnnotations()
Removes all detected annotations from the document.
|
void |
clearAttachments()
Removes all detected attachments from the document.
|
void |
clearBookmarks()
Removes all detected bookmarks from the document.
|
void |
clearDigitalSignatures()
Removes all detected digital signatures from the document.
|
void |
clearFields()
Removes all detected form fields from the document.
|
PdfAnnotation[] |
getAnnotations()
Gets an array of the annotations.
|
PdfAttachment[] |
getAttachments()
Gets an array of the attachments.
|
PdfBookmark[] |
getBookmarks()
Gets an array of the bookmarks.
|
DigitalSignature[] |
getDigitalSignatures()
Gets an array of the digital signatures.
|
PdfFormField[] |
getFields()
Gets an array of the form fields.
|
int |
removeProperties(Specification specification)
Removes metadata properties satisfying a specification.
|
int |
sanitize()
Removes writable metadata properties from the package.
|
addProperties, contains, findProperties, get_Item, getCount, getKeys, getKnowPropertyDescriptors, getMetadataType, getPropertyDescriptors, iterator, setProperties, updateProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public final PdfAnnotation[] getAnnotations()
Gets an array of the annotations.
public final PdfAttachment[] getAttachments()
Gets an array of the attachments.
public final PdfBookmark[] getBookmarks()
Gets an array of the bookmarks.
public final PdfFormField[] getFields()
Gets an array of the form fields.
public final DigitalSignature[] getDigitalSignatures()
Gets an array of the digital signatures.
public int removeProperties(Specification specification)
Removes metadata properties satisfying a specification.
removeProperties
in class MetadataPackage
specification
- A specification to test each metadata property for a condition.public int sanitize()
Removes writable metadata properties from the package. The operation is recursive so it affects all nested packages as well.
sanitize
in class MetadataPackage
public final void clearAnnotations()
Removes all detected annotations from the document.
public final void clearAttachments()
Removes all detected attachments from the document.
public final void clearBookmarks()
Removes all detected bookmarks from the document.
public final void clearFields()
Removes all detected form fields from the document.
public final void clearDigitalSignatures()
Removes all detected digital signatures from the document.