StampImage

Annotations and hotspot links, page layout

Description

Places the selected image on each 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 selects pages, with an empty string selecting all pages; Left, Top, Width and Height 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 no image is selected or 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