DocumentSearchableObjects Property
Gets or sets the document objects that are to be included in a watermark search. Note, this property also specifies document objects which are used in image search. For more information see FindWatermarks, FindWatermarks(SearchCriteria), FindImages and FindImages(ImageSearchCriteria) methods.

Namespace: GroupDocs.Watermark
Assembly: GroupDocs.Watermark (in GroupDocs.Watermark.dll) Version: 19.5
Syntax
public SearchableObjects SearchableObjects { get; set; }

Property Value

Type: SearchableObjects
The document objects that are to be included in a watermark search.
Examples
Remove all XObjects and Artifacts from a pdf document.
C#
using (Document doc = Document.Load(@"D:\test.pdf"))
{
    // Specify that only XObjects and Artifacts should be searched for.
    doc.SearchableObjects.PdfSearchableObjects = PdfSearchableObjects.XObjects | PdfSearchableObjects.Artifacts; 

    PossibleWatermarkCollection watermarks = doc.FindWatermarks();

    // Remove all found hyperlinks.
    watermarks.Clear();

    // Save changes.
    doc.Save();
}
See Also