Created
October 19, 2017 11:05
-
-
Save GroupDocsGists/f40ba1e4445449526e3c3dcb2f7e47aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET | |
using (WordsDocument doc = Document.Load<WordsDocument>(Utilities.MapSourceFilePath (FilePath))) | |
{ | |
TextWatermark watermark = new TextWatermark("Test watermark", new Font("Arial", 19)); | |
// Add watermark to all headers of the first section | |
doc.Sections[0].AddWatermark(watermark); | |
doc.Save(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment