SetTempFile
Miscellaneous functions
Description
Specifies a temporary file used by encryption and explicit document-memory compaction so large documents can move serialised objects out of memory
Use SetTempFileQuota to bound disk use and CompactDocumentMemory to populate the indexed spool on demand
Syntax
Delphi
Function TPDFlib.SetTempFile(Const FileName: WideString): Integer;
ActiveX
Function PDFlib::SetTempFile(FileName As String) As Long
DLL
int DLSetTempFile(int InstanceID, const wchar_t * FileName);
Parameters
| FileName | The 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
| 0 | The path specified was not valid. A temporary file could not be created. |
|---|---|
| 1 | The temporary file could be created successfully |