Table of Contents

Class PdfMergerProperties

Namespace
iText.Kernel.Utils
Assembly
itext.kernel.dll

Class with additional properties for PdfMerger processing.

public class PdfMergerProperties
Inheritance
PdfMergerProperties
Inherited Members

Remarks

Class with additional properties for PdfMerger processing. Needs to be passed at merger initialization.

Constructors

PdfMergerProperties()

Default constructor, use provided setters for configuration options.

public PdfMergerProperties()

Methods

IsCloseSrcDocuments()

check if source documents should be close after merging

public virtual bool IsCloseSrcDocuments()

Returns

bool

true if they should, false otherwise

IsMergeOutlines()

check if outlines should be merged

public virtual bool IsMergeOutlines()

Returns

bool

true if they should, false otherwise

IsMergeScripts()

check if ECMA scripts (which are executed at document opening) should be merged

public virtual bool IsMergeScripts()

Returns

bool

true if they should, false otherwise

IsMergeTags()

check if tags should be merged

public virtual bool IsMergeTags()

Returns

bool

true if they should, false otherwise

SetCloseSrcDocuments(bool)

close source documents after merging

public virtual PdfMergerProperties SetCloseSrcDocuments(bool closeSrcDocuments)

Parameters

closeSrcDocuments bool

true to close, false otherwise

Returns

PdfMergerProperties

PdfMergerProperties instance

SetMergeOutlines(bool)

merge documents outlines

public virtual PdfMergerProperties SetMergeOutlines(bool mergeOutlines)

Parameters

mergeOutlines bool

true to merge, false otherwise

Returns

PdfMergerProperties

PdfMergerProperties instance

SetMergeScripts(bool)

merge documents ECMA scripts, if AA or OpenAction or Names dictionaries contained in both documents than nothing will be merged

public virtual PdfMergerProperties SetMergeScripts(bool mergeNames)

Parameters

mergeNames bool

true to merge, false otherwise

Returns

PdfMergerProperties

PdfMergerProperties instance

SetMergeTags(bool)

merge documents tags

public virtual PdfMergerProperties SetMergeTags(bool mergeTags)

Parameters

mergeTags bool

true to merge, false otherwise

Returns

PdfMergerProperties

PdfMergerProperties instance