SaveToFile

Document management

Description

Saves the selected document to a file on disk.

Syntax

Delphi

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

ActiveX

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

DLL

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

Parameters

FileNameThe name of the file to create

Return values

0The file could not be created or the document could not be saved
1The file was created successfully

Remarks

Large RC4, AES-CBC, and AES-GCM encrypted streams are transformed directly into the output file through bounded chunks while their in-memory source bytes remain unchanged, so repeated saves do not require full ciphertext and plaintext restoration copies