SetTempFile

Miscellaneous functions

Description

Specifies a temporary file which can be used during operations such as encryption. This allows large documents to be processed without running out of memory.

Syntax

Delphi

function TPDFlib.SetTempFile(Const FileName: WideString): Integer;

ActiveX

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

DLL

int DLSetTempFile(int InstanceID, wchar_t * FileName);

Parameters

FileNameThe full path and file to use as a temporary file. This path must have write access by the running process. For example, "c:\temp\pdftemp.dat".

Return values

0The path specified was not valid. A temporary file could not be created.
1The temporary file could be created successfully