API referenceAnnotations

pdfSetAnnotOpacity

Set an annotation's /CA (constant opacity) value.

C
BOOL32 __stdcall pdfSetAnnotOpacity(PPDF IPDF, uint32_t Handle, double Value);
Delphi
function pdfSetAnnotOpacity(const IPDF: PPDF; Handle: Cardinal; Value: Double): LongBool; stdcall;

Purpose. Set an annotation's /CA (constant opacity) value.

Parameters.

ParameterDescription
IPDFDocument handle.
HandleDocument-wide annotation handle.
ValueOpacity, 0.0..1.0.

Return value. True if Handle resolves; False otherwise.

C# (P/Invoke)

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

Annotations

Exported names

pdfSetAnnotOpacity

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.