Table of Contents

Interface ICopyFilter

Namespace
iText.Kernel.Utils
Assembly
itext.kernel.dll

A filter class to be used while copying pdf components.

public interface ICopyFilter

Methods

ShouldProcess(PdfObject, PdfName, PdfObject)

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

bool ShouldProcess(PdfObject newParent, PdfName name, PdfObject value)

Parameters

newParent PdfObject

the parent in the target of the PdfObject to be checked

name PdfName

the name of the PdfObject if the parent is a PdfDictionary

value PdfObject

the PdfObject toi be checked

Returns

bool

true, the PdfObject will be copied, false it will not be copied

Remarks

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.