|
|
|
|
|
<pdfDocument variable>.AddWatermark (Function) In french: <Variable pdfDocument>.AjouteFiligrane Adds a watermark to all the pages of an existing PDF file. Note: This function can be used several times on the same document to add different watermarks. New in version 2025MonFiligrane is Watermark
MonFiligrane.Text = "Confidentiel"
MonFiligrane.Font.Name = "Arial"
MonFiligrane.Position = iCenterH + iBottom
MonPDF is pdfDocument = fExeDir() + [fSep()] + "ETAT_SansNom1.pdf"
MonPDF.AddWatermark(MonFiligrane)
PDFSave(MonPDF, fExeDir() + [fSep()] + "ETAT_SansNom1_Avec_Filigrane.pdf")
Syntax
<Document>.AddWatermark(<Watermark>)
<Document>: pdfDocument variable Name of the pdfDocument variable that corresponds to the PDF document to be used. <Watermark>: Watermark variable Name of the Watermark variable that corresponds to the watermark to be added in all pages of the PDF document.
Related Examples:
|
Unit examples (WINDEV): PDFDocument type
[ + ] This example shows how to use the pdfDocument WLanguage type. This type is used to handle PDF files by programming. You can: - Retrieve the details of the PDF file (Created, Modified, Author, etc.) - Retrieve the text of the PDF file (page by page and line by line) - List / Add / Delete attachments
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|