pdfSetAnnotOpenState
Set whether a popup-bearing annotation (Text, FreeText, etc.)
C
BOOL32 __stdcall pdfSetAnnotOpenState(PPDF IPDF, uint32_t Handle, BOOL32 Open);
Delphi
function pdfSetAnnotOpenState(const IPDF: PPDF; Handle: Cardinal; Open: LongBool): LongBool; stdcall;
Purpose. Set whether a popup-bearing annotation (Text, FreeText, etc.) starts open (/Open true) when the document is first viewed.
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
pdfSetAnnotOpenState
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.