Skip to content

Instantly share code, notes, and snippets.

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/27d44004880148837ec6eae437af92c0 to your computer and use it in GitHub Desktop.
Save GroupDocsGists/27d44004880148837ec6eae437af92c0 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
Document.DefaultSearchableObjects = New SearchableObjects() With { _
.WordsSearchableObjects = WordsSearchableObjects.Hyperlinks Or WordsSearchableObjects.Text, _
.CellsSearchableObjects = CellsSearchableObjects.HeadersFooters, _
.SlidesSearchableObjects = SlidesSearchableObjects.SlidesBackgrounds Or SlidesSearchableObjects.Shapes, _
.DiagramSearchableObjects = DiagramSearchableObjects.None, _
.PdfSearchableObjects = PdfSearchableObjects.All _
}
For Each file As Object In Directory.GetFiles("D:\files")
Using doc = Document.Load(file)
' The code for working with found watermarks goes here.
Dim watermarks = doc.FindWatermarks()
End Using
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment