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
| ListName | Named file list to merge. Build it with ClearFileList, AddToFileList, and FileListCount. |
|---|---|
| OutputFileName | Path and file name of the PDF to create. |
| PreserveStructTree | Set to True to preserve and merge Tagged PDF structure trees; set to False to omit structure-tree merging. |
| StrictMode | Set to True to stop at the first invalid input; set to False to skip invalid inputs and continue. |
Return values
| 0 | The merge did not produce an output file. |
|---|---|
| Non-zero | Number of input files merged successfully. Check ListName + "Result" with FileListItem for per-file status messages. |