PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllDraws existing watermark on the current PDF page.
|
| HRESULT PDFPAGE_DrawWatermark ( LONG watermarkIndex ) |
Parameters
Return value
Remarks
This method draws watermark created using CreateWatermark function. You can create watermark and use it on any pages, for example logo, page headers and footers, etc. Since the watermark body used only once in PDF, the document will be small, even if you use watermark many times. If you want to put watermark at specific position on the page, you should create watermark, setup it's dimensions using PDFPAGE_Width and PDFPAGE_Height, and after drawing operations put it on the page using PDFPAGE_DrawWatermark. Watermark will be placed from the bottom left corner of the page.
For example, if you want to put some contents on the top and bottom of each page, you can create watermark with dimensions same as for PDF page, and output any contents at desired positions. If you're using other dimensions for watermark, please take into account that watermarks are placed from the bottom left corner of the PDF page.
See Also


