iText 9.0.0 API
iText.Kernel.Utils.NullCopyFilter Class Reference

A no-op ICopyFilter instance, used as default. More...

Inheritance diagram for iText.Kernel.Utils.NullCopyFilter:
iText.Kernel.Utils.ICopyFilter

Public Member Functions

bool  ShouldProcess (PdfObject newParent, PdfName name, PdfObject value)
  Verifies whether a PdfObject should be copied in the copying flow. More...
 

Static Public Member Functions

static iText.Kernel.Utils.NullCopyFilter  GetInstance ()
  Getter for an instance of NullCopyFilter. More...
 

Detailed Description

A no-op ICopyFilter instance, used as default.

Member Function Documentation

◆ GetInstance()

static iText.Kernel.Utils.NullCopyFilter iText.Kernel.Utils.NullCopyFilter.GetInstance ( )
inlinestatic

Getter for an instance of NullCopyFilter.

Returns
NullCopyFilter instance

◆ ShouldProcess()

bool iText.Kernel.Utils.NullCopyFilter.ShouldProcess ( PdfObject  newParent,
PdfName  name,
PdfObject  value 
)
inline

Verifies whether a PdfObject should be copied in the copying flow.

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.

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

Implements iText.Kernel.Utils.ICopyFilter.