MergeFileListInternal

文件操作

描述

進階合併進入點,讓 Delphi 呼叫端自行決定具名檔案清單合併要不要保留標籤式 PDF 結構樹,以及要不要在第一個壞輸入就停止

大多數應用程式應改呼叫 MergeFileList、MergeFileListStrict 或 MergeFileListFast;只有需要明確選擇 PreserveStructTree 與 StrictMode 時才用本函式。

語法

Delphi

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

參數

ListName要合併的具名檔案清單。用 ClearFileList、AddToFileList 與 FileListCount 建立它。
OutputFileName要建立的 PDF 路徑與檔名。
PreserveStructTree設為 True 保留並合併標籤式 PDF 結構樹;設為 False 省略結構樹合併。
StrictMode設為 True 表示遇到第一個無效輸入就停止;設為 False 表示跳過無效輸入繼續。

傳回值

0合併未產生輸出檔案。
Non-zero成功合併的輸入檔案數量。各檔案的狀態訊息請用 FileListItem 檢視 ListName + "Result"。