pdfSetTrialMode
Opt into stamping a demo/trial watermark on output while the
C
BOOL32 __stdcall pdfSetTrialMode(PPDF IPDF, BOOL32 Enable);
Delphi
function pdfSetTrialMode(const IPDF: PPDF; Enable: LongBool): LongBool; stdcall;
Purpose. Opt into stamping a demo/trial watermark on output while the document is unlicensed.
Description. Real: FTrialMode is consulted alongside the license validity flag (demo := FTrialMode and not FLicenseValid) to decide whether a demo watermark is applied at serialization — this is a genuine, functioning trial/demo-mode toggle, not a no-op.
Parameters.
| Parameter | Description |
|---|---|
IPDF | Document handle. |
Enable | Whether to opt into demo-watermark behavior while unlicensed. |
Return value. True if IPDF is valid.
See also. pdfSetLicenseKey, pdfIsLicensed.
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Core SDK
Category
Setters
Exported names
pdfSetTrialMode
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.