iText 8.0.5 API
iText.Kernel.Utils.ICopyFilter Interface Reference

A filter class to be used while copying pdf components. More...

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

Public Member Functions

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

Detailed Description

A filter class to be used while copying pdf components.

Member Function Documentation

◆ ShouldProcess()

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

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

Implemented in iText.Kernel.Pdf.DestinationResolverCopyFilter, and iText.Kernel.Utils.NullCopyFilter.