AppendToFileA
Document management
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to AppendToFile and string arguments are interpreted using the current SetAnsiMode code page
Appends changed objects to the specified source PDF as an incremental update
Use the same file that supplied the selected document through LoadFromFile, LoadFromString, or LoadFromStream
The target length must match the loaded source length; a mismatch is rejected before writing because incremental offsets would be stale
Use SaveChanges for safe in-place saving and automatic reloading of the updated xref chain
Syntax
Delphi
Function DLAppendToFileA(InstanceID: Integer; FileName: PAnsiChar): Integer;
DLL
int DLAppendToFileA(int InstanceID, const char * FileName);
Parameters
| FileName | The source PDF file that receives the incremental update |
|---|
Return values
| 0 | The incremental update could not be appended to the specified file |
|---|---|
| 1 | Success |