ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / PDF functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Adds a watermark to all the pages of a PDF file in a PDF Reader control.
Remark: This function can be used multiple times on the same document to add different watermarks.
Example
MyWatermark is Watermark
MyWatermark.Text = "Confidential"
MyWatermark.Font.Name = "Arial"
MyWatermark.Position = iCenterH + iBottom
 
MyPDF is pdfDocument = fExeDir() + [fSep()] + "RPT_NoName1.pdf"
 
// Add watermark to PDF Reader control
PDF_MyReader.AddWatermark(MyWatermark)
<PDF Reader control>.AddWatermark(<Watermark>)
<PDF Reader control>: Control name
Name of PDF Reader control to use
<Watermark>: Watermark variable
Name of the Watermark variable that corresponds to the watermark to be added in all pages of the PDF document.
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help