API referenceAnnotations

pdfSetAnnotLineEndStyle

Set an annotation's /BS /D dash pattern (works on any

C
BOOL32 __stdcall pdfSetAnnotLineDashPattern(PPDF IPDF, uint32_t Handle, float* Dash, uint32_t NumValues);
BOOL32 __stdcall pdfSetAnnotLineEndStyle(PPDF IPDF, uint32_t Handle, TLineEndStyle LE1, TLineEndStyle LE2);
Delphi
function pdfSetAnnotLineDashPattern(const IPDF: PPDF; Handle: Cardinal; Dash: PSingle; NumValues: Cardinal): LongBool; stdcall;
function pdfSetAnnotLineEndStyle(const IPDF: PPDF; Handle: Cardinal; LE1, LE2: TLineEndStyle): LongBool; stdcall;

Purpose. Set an annotation's /BS /D dash pattern (works on any annotation with a border, not just Line), and a Line annotation's /LE start/end decoration style pair (arrows, circles, diamonds, etc).

Parameters.

ParameterDescription
IPDFDocument handle.
HandleTarget annotation handle.
Dash, NumValues*(DashPattern only)* Dash array.
LE1, LE2*(EndStyle only)* Start/end decoration styles.

Return value. True if Handle resolves; False otherwise.

See also. pdfLineAnnot.

C# (P/Invoke)

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

Annotations

Exported names

pdfSetAnnotLineEndStyle

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.