API reference › Import & Output APIs
pdfHaveOpenDoc
Test whether an output document is open on the instance
Purpose — Test whether an output document is open on the instance (i.e. pdfCreateNewPDF…/pdfOpenOutputFile succeeded and pdfCloseFile has not yet run).
C
BOOL32 __stdcall pdfHaveOpenDoc(PPDF IPDF);
Delphi
function pdfHaveOpenDoc(const IPDF: PPDF): LongBool; stdcall; external 'LumasPdf.dll';
Return value — TRUE/FALSE; FALSE also for an invalid handle. Note this reflects the output document, not the import source.
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Import & Output APIs
Category
Core
Exported names
pdfHaveOpenDoc
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.