iText 8.0.2 API
iText.Kernel.Pdf.DestinationResolverCopyFilter Class Reference

A copy filter that will handle goto annotations and actions separately. More...

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

Public Member Functions

  DestinationResolverCopyFilter (PdfDocument fromDocument, PdfDocument targetDocument)
  Initilazes a copy filter that will set all needed information aside to handle objects with a page destination after all pages are copied. More...
 
virtual bool  ShouldProcess (PdfObject newParent, PdfName name, PdfObject value)
  Verifies whether a PdfObject should be copied in the copying flow. More...
 

Detailed Description

A copy filter that will handle goto annotations and actions separately.

Constructor & Destructor Documentation

◆ DestinationResolverCopyFilter()

iText.Kernel.Pdf.DestinationResolverCopyFilter.DestinationResolverCopyFilter ( PdfDocument  fromDocument,
PdfDocument  targetDocument 
)
inline

Initilazes a copy filter that will set all needed information aside to handle objects with a page destination after all pages are copied.

Initilazes a copy filter that will set all needed information aside to handle objects with a page destination after all pages are copied.

Parameters
fromDocument the PdfDocument the pages are copied from
targetDocument the PdfDocument the pages are copied to

Member Function Documentation

◆ ShouldProcess()

virtual bool iText.Kernel.Pdf.DestinationResolverCopyFilter.ShouldProcess ( PdfObject  newParent,
PdfName  name,
PdfObject  value 
)
inlinevirtual

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.