THPDFWatermarkBase Record

Unified watermark descriptor that text and shape watermarks share: 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 that the watermark stays on the page
OverlayTrue draws on top of existing page content; false, the underlay case, draws beneath it
HorizPosHorizontal placement preset; hpCustom keeps the literal X value, whilst every other value recomputes X from the MediaBox
VertPosVertical placement preset; vpCustom keeps the literal Y value as given
X, YAnchor coordinates used where both position presets are custom
OpacityStrokeStroke opacity from 0 to 1, applied by way of the extended graphics state
OpacityFillFill opacity running from 0 to 1
StrokeColorPen colour used for text and shape outlines
PenWidthPen width used when drawing strokes

Usage notes

Related APIs