AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones PDF
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 a page of an existing PDF file.
Remark: This function can be used multiple times on the same page 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 one page of the PDF document
MyPDF.Page[1].AddWatermark(MyWatermark)
 
PDFSave(MyPDF, fExeDir() + [fSep()] + "RPT_NoName1_With_Watermark.pdf")
Syntax
<Page>.AddWatermark(<Watermark>)
<Page>: pdfPage variable
Name of the pdfPage variable that corresponds to the page of the PDF file the watermark to which should be added.
<Watermark>: Watermark variable
Name of the Watermark variable corresponding to the watermark to be added to the page.
Versión mínima requerida
  • Versión 27
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 22/06/2023

Señalar un error o enviar una sugerencia | Ayuda local