MergeFileListInternal

Document manipulation

Description

Advanced merge entry point that lets Delphi callers choose whether the named-file-list merge preserves tagged PDF structure trees and whether it stops at the first bad input

Most applications should call MergeFileList, MergeFileListStrict, or MergeFileListFast instead; use this function only when PreserveStructTree and StrictMode must be selected explicitly

Syntax

Delphi

Function TPDFlib.MergeFileListInternal(Const ListName, OutputFileName: WideString; PreserveStructTree, StrictMode: Boolean): Integer;

Parameters

ListNameNamed file list to merge. Build it with ClearFileList, AddToFileList, and FileListCount.
OutputFileNamePath and file name of the PDF to create
PreserveStructTreeSet to True to preserve and merge Tagged PDF structure trees; set to False to omit structure-tree merging
StrictModeSet to True to stop at the first invalid input; set to False to skip invalid inputs and continue

Return values

0The merge did not produce an output file
Non-zeroNumber of input files merged successfully. Check ListName + "Result" with FileListItem for per-file status messages