usmanazizgroupdocs
4/17/2017 - 9:50 AM

Documents-AddWatermarkToPowerPointSlide.vb

' For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
Using doc As SlidesDocument = Document.Load(Of SlidesDocument)(Utilities.MapSourceFilePath(FilePath))
    ' Add text watermark
    Dim textWatermark As New TextWatermark("Test watermark", New Font("Arial", 8))
    doc.Slides(0).AddWatermark(textWatermark)

    ' Add image watermark
    Using imageWatermark As New ImageWatermark("D:\logo.jpg")
        doc.Slides(1).AddWatermark(imageWatermark)
    End Using
    doc.Save()
End Using