TPDFlibImageWatermark

Data types, page layout

Description

TPDFlibImageWatermark is the concrete TPDFlibWatermarkBase subclass that stamps a previously added image onto a page range

The image must already exist in the target document; set ImageID to the id returned when the image was added, and size the placement with Width and Height

Syntax

Delphi

TPDFlibImageWatermark = Class(TPDFlibWatermarkBase)
  Public
    ImageID: Integer;
    Width, Height: Double;
    Constructor Create; Override;
    Function Apply(Lib: TObject): Integer; Override;
  End;

Fields

ImageIDThe id of an image previously added to the document and selectable with SelectImage
Width, HeightThe placement size in the current measurement units

Return value

Apply returns the number of pages the watermark was placed on

Remarks

The inherited Position, X, Y, Angle, Opacity and PageRange fields control placement exactly as on the base class

See also

ApplyWatermark, TPDFlibWatermarkBase, TPDFlibCompositeWatermark, SelectImage