AppendToFile

Document management

Description

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 save and automatic reload of the updated xref chain

Syntax

Delphi

Function TPDFlib.AppendToFile(Const FileName: WideString): Integer;

ActiveX

Function PDFlib::AppendToFile(FileName As String) As Long

DLL

int DLAppendToFile(int InstanceID, const wchar_t * FileName);

Parameters

FileNameThe source PDF file that receives the incremental update

Return values

0The incremental update could not be appended to the specified file
1Success