API referenceCore SDK

pdfIsLicensed

Report whether a valid license key is currently registered.

CategoryLicensing

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

C
BOOL32 __stdcall pdfIsLicensed(PPDF IPDF);
Delphi
function pdfIsLicensed(const IPDF: PPDF): LongBool; stdcall; external 'LumasPdf.dll';

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

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Core SDK
Category

Core

Exported names

pdfIsLicensed

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.