API referenceAnnotations

pdfSetAnnotQuadPoints

Set the /QuadPoints array on a markup annotation

C
BOOL32 __stdcall pdfSetAnnotQuadPoints(PPDF IPDF, uint32_t Handle, PFltPoint Value, uint32_t Count);
Delphi
function pdfSetAnnotQuadPoints(const IPDF: PPDF; Handle: Cardinal; Value: PFltPoint; Count: Cardinal): LongBool; stdcall;

Purpose. Set the /QuadPoints array on a markup annotation (Highlight/Underline/Squiggly/StrikeOut) — the 4-point-per-region quads that define exactly which glyphs the markup covers.

Parameters.

ParameterDescription
IPDFDocument handle.
HandleDocument-wide annotation handle.
ValueArray of points, 4 * (number of quad regions) entries.
CountTotal point count in Value (must be a multiple of 4).

Return value. True if Handle resolves; False otherwise.

See also. pdfHighlightAnnot (auto-computes quads at creation time — this setter is for adjusting them after the fact).

C# (P/Invoke)

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

Annotations

Exported names

pdfSetAnnotQuadPoints

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.