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.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private boolean
private boolean
private boolean
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor, use provided setters for configuration options. -
Method Summary
Modifier and TypeMethodDescriptionboolean
check if source documents should be close after mergingboolean
check if outlines should be mergedboolean
check if ECMA scripts (which are executed at document opening) should be mergedboolean
check 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
-
Field Details
-
closeSrcDocuments
private boolean closeSrcDocuments -
mergeTags
private boolean mergeTags -
mergeOutlines
private boolean mergeOutlines -
mergeScripts
private boolean mergeScripts
-
-
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:
PdfMergerProperties
instance
-
setMergeTags
merge documents tags- Parameters:
mergeTags
- true to merge, false otherwise- Returns:
PdfMergerProperties
instance
-
setMergeOutlines
merge documents outlines- Parameters:
mergeOutlines
- true to merge, false otherwise- Returns:
PdfMergerProperties
instance
-
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:
PdfMergerProperties
instance
-