THPDFWatermarkHorizPos Type
Selects a horizontal watermark placement preset or caller-supplied coordinates
Declaration
THPDFWatermarkHorizPos= (hpLeft, hpCenter, hpRight, hpCustom);
Unit
HPDFDoc
Values
| Value | Purpose |
|---|---|
hpLeft | Placement preset that recomputes X from the page MediaBox to align the watermark at the left edge |
hpCenter | Placement preset that recomputes X from the page MediaBox to center the watermark horizontally |
hpRight | Placement preset that recomputes X from the page MediaBox to align the watermark at the right edge |
hpCustom | Keeps the literal X 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 X is recomputed from each page's MediaBox
- Choose
hpCustom(or leaveTHPDFWatermarkBase.Defaultin place) when the watermark needs exact caller-supplied coordinates - Horizontal and vertical placement are independent enums, so a template can pair
hpCenterwith anyTHPDFWatermarkVertPosvalue