' For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
Using doc As PdfDocument = Document.Load(Of PdfDocument)(Utilities.MapSourceFilePath(FilePath))
' Add text watermark
Dim textWatermark As New TextWatermark("This is an artifact watermark", New Font("Arial", 8))
doc.AddArtifactWatermark(textWatermark)
' Add image watermark
'using (ImageWatermark imageWatermark = new ImageWatermark(@"D:\logo.bmp"))
'{
' doc.AddArtifactWatermark(imageWatermark);
'}
doc.Save()
End Using