API reference › Import & Output APIs
pdfReOpenImportFile
Re-open the last file import source from its remembered path.
Purpose — Re-open the last file import source from its remembered path.
Description — Useful after an operation that closed the import (for example pdfOpenOutputFile, which resets the whole document, or an explicit pdfCloseImportFile). The Handle argument is ignored — the engine keeps a single import slot.
BOOL32 __stdcall pdfReOpenImportFile(PPDF IPDF, uint32_t Handle);
function pdfReOpenImportFile(const IPDF: PPDF; Handle: Cardinal): LongBool; stdcall; external 'LumasPdf.dll';
Return value — TRUE on success; FALSE if no file path is on record (never opened, or the source was a buffer) or the re-open fails. The re-open uses no password — a password-protected source must be re-opened explicitly with pdfOpenImportFile.
C# (P/Invoke)
[return: MarshalAs(UnmanagedType.Bool)]
Core
pdfReOpenImportFile
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.