API referenceImport & 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.

C
BOOL32 __stdcall pdfReOpenImportFile(PPDF IPDF, uint32_t Handle);
Delphi
function pdfReOpenImportFile(const IPDF: PPDF; Handle: Cardinal): LongBool; stdcall; external 'LumasPdf.dll';

Return valueTRUE 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)

wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Import & Output APIs
Category

Core

Exported names

pdfReOpenImportFile

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.