ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / PDF functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Adds a watermark to a page of an existing PDF file.
Note: This function can be used several times on the same page to add different watermarks.
New in version 2025
Android This function is now available for Android applications.
Android Widget This function is now available in Android widget mode.
Example
MonFiligrane is Watermark
MonFiligrane.Text = "Confidentiel"
MonFiligrane.Police.Nom = "Arial"
MonFiligrane.Position = iCenterH + iBottom

MonPDF is pdfDocument = fRepExe() + [fSep()] + "ETAT_SansNom1.pdf"

// Ajout du filigrane sur une page du document PDF
MonPDF.Page[1].AjouteFiligrane(MonFiligrane)

PDFSave(MonPDF, fExeDir() + [fSep()] + "ETAT_SansNom1_Avec_Filigrane.pdf")
Syntax
<Page>.AddWatermark(<Watermark>)
<Page>: pdfPage variable
Name of the pdfPage variable that corresponds to the page of the PDF file in which the watermark is to be added.
<Watermark>: Watermark variable
Name of the Watermark variable that corresponds to the watermark to be added to the page.
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/19/2024

Send a report | Local help