Package com.itextpdf.kernel.utils
Class NullCopyFilter
java.lang.Object
com.itextpdf.kernel.utils.NullCopyFilter
- All Implemented Interfaces:
-
ICopyFilter
A no-op
ICopyFilter instance, used as default.
-
Method Summary
Modifier and TypeMethodDescriptionstatic NullCopyFilterGetter for an instance ofNullCopyFilter.booleanshouldProcess(PdfObject newParent, PdfName name, PdfObject value) Verifies whether a PdfObject should be copied in the copying flow.
-
Method Details
-
getInstance
Getter for an instance ofNullCopyFilter.- Returns:
- NullCopyFilter instance
-
shouldProcess
Description copied from interface:ICopyFilterVerifies whether a PdfObject should be copied in the copying flow. The filter class has to take care of alternative ways to process the PdfObject if needed. When more than one filter should be used, it is upon the user to chain them together.- Specified by:
-
shouldProcessin interfaceICopyFilter - Parameters:
-
newParent- the parent in the target of the PdfObject to be checked -
name- the name of the PdfObject if the parent is a PdfDictionary -
value- the PdfObject toi be checked - Returns:
- true, the PdfObject will be copied, false it will not be copied
-