Package com.itextpdf.kernel.utils
Class PdfMergerProperties
- java.lang.Object
-
- com.itextpdf.kernel.utils.PdfMergerProperties
-
public class PdfMergerProperties extends java.lang.ObjectClass with additional properties forPdfMergerprocessing. Needs to be passed at merger initialization.
-
-
Field Summary
Fields Modifier and Type Field Description private booleancloseSrcDocumentsprivate booleanmergeOutlinesprivate booleanmergeScriptsprivate booleanmergeTags
-
Constructor Summary
Constructors Constructor Description PdfMergerProperties()Default constructor, use provided setters for configuration options.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisCloseSrcDocuments()check if source documents should be close after mergingbooleanisMergeOutlines()check if outlines should be mergedbooleanisMergeScripts()check if ECMA scripts (which are executed at document opening) should be mergedbooleanisMergeTags()check if tags should be mergedPdfMergerPropertiessetCloseSrcDocuments(boolean closeSrcDocuments)close source documents after mergingPdfMergerPropertiessetMergeOutlines(boolean mergeOutlines)merge documents outlinesPdfMergerPropertiessetMergeScripts(boolean mergeNames)merge documents ECMA scripts, if AA or OpenAction or Names dictionaries contained in both documents than nothing will be mergedPdfMergerPropertiessetMergeTags(boolean mergeTags)merge documents tags
-
-
-
Method Detail
-
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
public PdfMergerProperties setCloseSrcDocuments(boolean closeSrcDocuments)
close source documents after merging- Parameters:
closeSrcDocuments- true to close, false otherwise- Returns:
PdfMergerPropertiesinstance
-
setMergeTags
public PdfMergerProperties setMergeTags(boolean mergeTags)
merge documents tags- Parameters:
mergeTags- true to merge, false otherwise- Returns:
PdfMergerPropertiesinstance
-
setMergeOutlines
public PdfMergerProperties setMergeOutlines(boolean mergeOutlines)
merge documents outlines- Parameters:
mergeOutlines- true to merge, false otherwise- Returns:
PdfMergerPropertiesinstance
-
setMergeScripts
public PdfMergerProperties setMergeScripts(boolean mergeNames)
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
-
-