Created
October 19, 2017 10:58
-
-
Save GroupDocsGists/27d44004880148837ec6eae437af92c0 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 | |
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