THPDFWatermarkVertPos Type
Selects a vertical watermark placement preset or coordinates supplied by the caller
Declaration
THPDFWatermarkVertPos= (vpTop, vpMiddle, vpBottom, vpCustom);
Unit
HPDFDoc
Values
| Value | Purpose |
|---|---|
vpTop | Placement preset that recomputes Y from the page MediaBox so the watermark sits near the top edge |
vpMiddle | Placement preset that recomputes Y from the page MediaBox so the watermark sits centred vertically |
vpBottom | Placement preset that recomputes Y from the page MediaBox so the watermark sits near the bottom edge |
vpCustom | Keeps the literal Y coordinate exactly as the caller supplied it; this is the THPDFWatermarkBase.Default setting |
Usage notes
- Presets let a single watermark template stamp pages of differing sizes with one configuration, because Y is recomputed from each page's MediaBox
- Choose
vpCustom(or leaveTHPDFWatermarkBase.Defaultin place) where the watermark needs exact coordinates from the caller - Vertical and horizontal placement are independent enums, so a template may pair
vpMiddlewith anyTHPDFWatermarkHorizPosvalue