Package com.itextpdf.kernel.pdf
Class DestinationResolverCopyFilter
java.lang.Object
com.itextpdf.kernel.pdf.DestinationResolverCopyFilter
- All Implemented Interfaces:
-
ICopyFilter
A copy filter that will handle goto annotations and actions separately.
-
Constructor Summary
ConstructorDescriptionDestinationResolverCopyFilter
(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. -
Method Summary
Modifier and TypeMethodDescriptionboolean
shouldProcess
(PdfObject newParent, PdfName name, PdfObject value) Verifies whether a PdfObject should be copied in the copying flow.
-
Constructor Details
-
DestinationResolverCopyFilter
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
- thePdfDocument
the pages are copied from -
targetDocument
- thePdfDocument
the pages are copied to
-
-
Method Details
-
shouldProcess
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 interfaceICopyFilter
- 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
-