API reference › Import & Output APIs
pdfSetUseSwapFile
Enable disk swapping of finished page content (streaming ABI).
Purpose — Enable disk swapping of finished page content (streaming ABI).
Description — The flag is stored on the instance but not consulted — this engine keeps everything in memory until close. Provided so portable code can call it unconditionally; SwapLimit is ignored.
C
BOOL32 __stdcall pdfSetUseSwapFile(PPDF IPDF, BOOL32 SwapContents, uint32_t SwapLimit);
Return value — TRUE unless the instance handle is invalid.
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Import & Output APIs
Category
Setters
Exported names
pdfSetUseSwapFile
String variants
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
See working code
Worked examples — complete programs in ten languages.