Skip to content

Instantly share code, notes, and snippets.

@GroupDocsGists
Created October 19, 2017 11:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GroupDocsGists/f40ba1e4445449526e3c3dcb2f7e47aa to your computer and use it in GitHub Desktop.
Save GroupDocsGists/f40ba1e4445449526e3c3dcb2f7e47aa to your computer and use it in GitHub Desktop.
// 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