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/46dd1826b58e529a2f23e452e5d5e5fa to your computer and use it in GitHub Desktop.
Save GroupDocsGists/46dd1826b58e529a2f23e452e5d5e5fa 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 (var doc = Document.Load(Utilities.MapSourceFilePath(DocFilePath)))
{
// Search for hyperlinks only.
doc.SearchableObjects.PdfSearchableObjects = PdfSearchableObjects.Hyperlinks;
var watermarks = doc.FindWatermarks();
// The code for working with found watermarks goes here.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment