StampText
Annotations and hotspot links, page layout
Description
Adds the given text to each selected page using the current font and text styling, restoring the original page and drawing state afterward
Syntax
Delphi
Function TPDFlib.StampText(Const PageRange: WideString; Left, Top, Angle, Opacity: Double; Const Text: WideString; Overlay: TPDFlibStampOverlay): Integer;
Parameters
PageRange selects pages, with an empty string selecting all pages; Left and Top use the current origin and measurement units, Angle is in degrees, and Overlay chooses soOverlay or soUnderlay; Opacity is clamped to 0 through 1, where 0 is fully transparent and 1 is fully opaque; non-finite opacity returns 0 without changing the document
Return values
Returns the number of pages stamped, or 0 if the request cannot be applied
Remarks
The opacity applies inside the stamp graphics-state scope and does not change the opacity of later page content