StampText

Annotations and hotspot links, page layout

Description

Adds the given text to every selected page using the current font and text styling, then restores the original page and drawing state

Syntax

Delphi

Function TPDFlib.StampText(Const PageRange: WideString; Left, Top, Angle, Opacity: Double; Const Text: WideString; Overlay: TPDFlibStampOverlay): Integer;

Parameters

PageRange picks the pages, an empty string meaning all pages; Left and Top follow the current origin and measurement units, Angle is in degrees, and Overlay chooses soOverlay or soUnderlay; Opacity is clamped to the 0 to 1 range, where 0 is fully transparent and 1 fully opaque; a non-finite opacity returns 0 and leaves the document unchanged

Return values

Returns the number of pages stamped, or 0 if the request cannot be applied

Remarks

The opacity is applied within the stamp's graphics-state scope and has no effect on the opacity of later page content