GroupDocsGists
10/19/2017 - 11:07 AM

Documents-AddWatermarkToSection.vb

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

    ' Add watermark to all headers of the first section
    doc.Sections(0).AddWatermark(watermark)

    doc.Save()
End Using