Package com.itextpdf.kernel.utils
Class PdfMergerProperties
- java.lang.Object
-
- com.itextpdf.kernel.utils.PdfMergerProperties
-
public class PdfMergerProperties extends java.lang.Object
Class with additional properties forPdfMerger
processing. Needs to be passed at merger initialization.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
closeSrcDocuments
private boolean
mergeOutlines
private boolean
mergeScripts
private boolean
mergeTags
-
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 boolean
isCloseSrcDocuments()
check if source documents should be close after mergingboolean
isMergeOutlines()
check if outlines should be mergedboolean
isMergeScripts()
check if ECMA scripts (which are executed at document opening) should be mergedboolean
isMergeTags()
check if tags should be mergedPdfMergerProperties
setCloseSrcDocuments(boolean closeSrcDocuments)
close source documents after mergingPdfMergerProperties
setMergeOutlines(boolean mergeOutlines)
merge documents outlinesPdfMergerProperties
setMergeScripts(boolean mergeNames)
merge documents ECMA scripts, if AA or OpenAction or Names dictionaries contained in both documents than nothing will be mergedPdfMergerProperties
setMergeTags(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:
PdfMergerProperties
instance
-
setMergeTags
public PdfMergerProperties setMergeTags(boolean mergeTags)
merge documents tags- Parameters:
mergeTags
- true to merge, false otherwise- Returns:
PdfMergerProperties
instance
-
setMergeOutlines
public PdfMergerProperties setMergeOutlines(boolean mergeOutlines)
merge documents outlines- Parameters:
mergeOutlines
- true to merge, false otherwise- Returns:
PdfMergerProperties
instance
-
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:
PdfMergerProperties
instance
-
-