WatermarkerSearchableObjects Property
Gets or sets the content objects that are to be included in a watermark search.

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

Property Value

Type: SearchableObjects
The objects that are to be included in a watermark search.
Remarks

This property also specifies content objects which are used in image search. For more information see Search(SearchCriteria) and GetImages methods.

Learn more about searching watermarks: Searching watermarks.

Examples
Remove all XObjects and Artifacts from a pdf document.
C#
using (Watermarker watermarker = new Watermarker(@"D:\test.pdf"))
{
    // Specify that only XObjects and Artifacts should be searched for.
    watermarker.SearchableObjects.PdfSearchableObjects
        = PdfSearchableObjects.XObjects | PdfSearchableObjects.Artifacts; 

    PossibleWatermarkCollection watermarks = watermarker.Search();

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

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