| Category | Licensing |
|---|
Purpose — Report whether a valid license key is currently registered.
Description — Returns the instance's licensed flag, which was set by the most recent pdfSetLicenseKey that passed validation.
Declarations
BOOL32 __stdcall pdfIsLicensed(PPDF IPDF);
function pdfIsLicensed(const IPDF: PPDF): LongBool; stdcall; external 'LumasPdf.dll';
Return value — TRUE if a valid key is registered on this instance; FALSE if the handle is invalid or no valid key has been set.
Remarks — This is the authoritative acceptance check, since pdfSetLicenseKey always returns TRUE. An unlicensed document is still produced correctly — it simply carries the trial watermark.
See also — pdfSetLicenseKey
C# (P/Invoke)
[return: MarshalAs(UnmanagedType.Bool)]
Core
pdfIsLicensed
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.