Package com.itextpdf.kernel.utils
Class PdfMergerProperties
java.lang.Object
com.itextpdf.kernel.utils.PdfMergerProperties
Class with additional properties for
PdfMerger processing. Needs to be passed at merger initialization.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor, use provided setters for configuration options. -
Method Summary
Modifier and TypeMethodDescriptionbooleancheck if source documents should be close after mergingbooleancheck if outlines should be mergedbooleancheck if ECMA scripts (which are executed at document opening) should be mergedbooleancheck if tags should be mergedsetCloseSrcDocuments(boolean closeSrcDocuments) close source documents after mergingsetMergeOutlines(boolean mergeOutlines) merge documents outlinessetMergeScripts(boolean mergeNames) merge documents ECMA scripts, if AA or OpenAction or Names dictionaries contained in both documents than nothing will be mergedsetMergeTags(boolean mergeTags) merge documents tags
-
Constructor Details
-
PdfMergerProperties
public PdfMergerProperties()Default constructor, use provided setters for configuration options.
-
-
Method Details
-
isCloseSrcDocuments
public boolean isCloseSrcDocuments()check if source documents should be close after merging- Returns:
- true if they should, false otherwise
-
isMergeTags
public boolean isMergeTags()check if tags should be merged- Returns:
- true if they should, false otherwise
-
isMergeOutlines
public boolean isMergeOutlines()check if outlines should be merged- Returns:
- true if they should, false otherwise
-
isMergeScripts
public boolean isMergeScripts()check if ECMA scripts (which are executed at document opening) should be merged- Returns:
- true if they should, false otherwise
-
setCloseSrcDocuments
close source documents after merging- Parameters:
-
closeSrcDocuments- true to close, false otherwise - Returns:
-
PdfMergerPropertiesinstance
-
setMergeTags
merge documents tags- Parameters:
-
mergeTags- true to merge, false otherwise - Returns:
-
PdfMergerPropertiesinstance
-
setMergeOutlines
merge documents outlines- Parameters:
-
mergeOutlines- true to merge, false otherwise - Returns:
-
PdfMergerPropertiesinstance
-
setMergeScripts
merge documents ECMA scripts, if AA or OpenAction or Names dictionaries contained in both documents than nothing will be merged- Parameters:
-
mergeNames- true to merge, false otherwise - Returns:
-
PdfMergerPropertiesinstance
-