StampImage

Annotations and hotspot links, page layout

Description

Places the selected image on every page in the requested range

Syntax

Delphi

Function TPDFlib.StampImage(Const PageRange: WideString; Left, Top, Width, Height, Angle, Opacity: Double; Overlay: TPDFlibStampOverlay): Integer;

Parameters

PageRange picks the pages, an empty string meaning all pages; Left, Top, Width and Height 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 no image is selected or 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