Class NullCopyFilter

  • All Implemented Interfaces:
    ICopyFilter

    public final class NullCopyFilter
    extends java.lang.Object
    implements ICopyFilter
    A no-op ICopyFilter instance, used as default.
    • Constructor Detail

      • NullCopyFilter

        private NullCopyFilter()
    • Method Detail

      • shouldProcess

        public boolean shouldProcess​(PdfObject newParent,
                                     PdfName name,
                                     PdfObject value)
        Description copied from interface: ICopyFilter
        Verifies 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:
        shouldProcess in interface ICopyFilter
        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