Web SDKv1.0.0

Helpers.rectEdges()

The four edges of a Rect, as a PDF file stores them.
static methodGeometrysince 1.0.0

Signature

rectEdges(rect: Rect): RectEdges

Parameters

ParameterTypeDescription
rectRectA rectangle in page space.

Returns

RectEdges { left, bottom, right, top }.

Example

TypeScript
if (annotation.rect) {
  const { left, bottom, right, top } = rectEdges(annotation.rect);
}

More in Helpers