Purpose — Close the current import source.
Description — Releases the source document, its stream, and the importer. Templates already imported remain valid — their objects were copied into the destination document at import time — so closing early is safe and frees the source file lock.
C
BOOL32 __stdcall pdfCloseImportFile(PPDF IPDF);
Delphi
function pdfCloseImportFile(const IPDF: PPDF): LongBool; stdcall; external 'LumasPdf.dll';
Return value — TRUE if an import source was open; FALSE if there was nothing to close (or the instance handle is invalid).
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Import & Output APIs
Category
Core
Exported names
pdfCloseImportFile
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.