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