THPDFWatermarkBase Record

Unified watermark descriptor shared by text and shape watermarks: angle, layering, placement, opacity, and stroke settings

Declaration

THPDFWatermarkBase= record
  Angle: Extended;
  Overlay: boolean;
  HorizPos: THPDFWatermarkHorizPos;
  VertPos: THPDFWatermarkVertPos;
  X, Y: Single;
  OpacityStroke: Single;
  OpacityFill: Single;
  StrokeColor: TColor;
  PenWidth: Single;
  class function Default: THPDFWatermarkBase; static;
end;

Unit

HPDFDoc

Fields

FieldPurpose
AngleRotation in degrees; 0, 45, 90, 180, and 270 receive anchor correction so the watermark stays on the page
OverlayTrue draws above existing page content; false (underlay) draws below it
HorizPosHorizontal placement preset; hpCustom keeps the literal X value, every other value recomputes X from the MediaBox
VertPosVertical placement preset; vpCustom keeps the literal Y value
X, YAnchor coordinates used when both position presets are custom
OpacityStrokeStroke opacity from 0 to 1, applied through the extended graphics state
OpacityFillFill opacity from 0 to 1
StrokeColorPen color used for text and shape outlines
PenWidthPen width used for stroke drawing

Usage notes

Related APIs