MergeFileListFastA

Document manipulation

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to MergeFileListFast and string arguments are interpreted using the current SetAnsiMode code page

Similar to the MergeFileList function, but uses an advanced algorithm to improve speed

A new file list will be created during merging that will contain the result of the merge process for each of the items in the specified file list. The new file list will have the same name as the original file list with the word Result appended. For example, if the original file list was called "MyFiles", then the new file list will be called "MyFilesResult". This new file list will not contain file names, but will contain a text description of the status of the matching file during the merge process

There must be two or more files in the file list in order for the merging to succeed

Form fields, annotations, and outlines (bookmarks) from all the documents will be present in the merged document

Syntax

Delphi

Function DLMergeFileListFastA(InstanceID: Integer; ListName, OutputFileName: PAnsiChar): Integer;

DLL

int DLMergeFileListFastA(int InstanceID, const char* ListName, const char* OutputFileName);

Parameters

ListNameThe name of the file list to use. All the files in this list will be merged together
OutputFileNameThe path and file name of the output file to create. This file will contain all the files from the file list

Return values

0The merge process could not be completed. Use the GetLastError function to determine the cause of the error
Non-zeroThe number of files that were successfully merged