OnMergeOutline

Outlines

Description

Per-bookmark rewrite callback fired while documents merge. During a merge, the event is raised for each source top-level outline at the moment it is linked into the merged target tree, giving the application a last chance to adjust incoming bookmarks

The handler can rewrite Title to rename the incoming bookmark or set Skip to True to drop that bookmark and its entire sub-tree from the merged document

Syntax

Delphi

Property OnMergeOutline: TPDFlibMergeOutlineEvent Read FOnMergeOutline Write FOnMergeOutline;

Remarks

The handler follows the TPDFlibMergeOutlineEvent signature: Sender is the TPDFlib instance, SourceDocIndex identifies the source document in the merge queue, Title is passed as a var parameter carrying the bookmark title, and Skip is a var flag that discards the node when set to True

Assign the handler before starting MergeFileList, MergeFileListFast, or MergeFileListStrict; one handler serves every source document taking part in the merge

See also

TPDFlibMergeOutlineEvent, MergeFileList, MergeFileListFast, MergeFileListStrict, MergeDocument