ValidFiniteRect

Page layout, pagination, Form XObjects

Description

Private helper of TPDFlibDynamicComponentSession that validates that a rectangle uses finite numbers and strictly positive dimensions

Syntax

Function TPDFlibDynamicComponentSession.ValidFiniteRect(Left, Top,
  Width, Height: Double): Boolean;

Parameters

Left, TopRectangle origin, which may be any finite value including negative offsets
Width, HeightRectangle extents, which must be finite and strictly positive

Remarks

ComposeNextLayout validates the destination slot and the natural content canvas with this check before any component work starts

The origin coordinates are checked only for finiteness, while the extents must also be greater than zero

Return values

TrueAll four values are neither NaN nor infinite and both extents are greater than zero
FalseAny value is NaN or infinite, or either extent is zero or negative

See also

ValidComposeResult, ComposeNextLayout, ComposeNext, TPDFlibDynamicComponentSession