This gist provides a collection of concise .NET examples that show how to audit, verify, replace, remove, and track watermarks in documents using GroupDocs.Watermark.
- .NET 6.0 or later
- GroupDocs.Watermark for .NET (see the documentation)
- A temporary license (obtain from the temp‑license page)
- Scan and list all watermarks in a document
- Verify text or image watermarks
- Run a multi‑rule compliance report
- Replace or remove watermarks based on custom criteria
- Add and detect hidden tracking watermarks for leak detection
See the following example files:
ScanAllWatermarks.csVerifyTextWatermark.csVerifyLogoWatermark.csRunComplianceReport.csReplaceTextWatermark.csRemoveWatermarksByCriteria.csAddTrackingWatermark.csDetectTrackingWatermark.cs
- Install the GroupDocs.Watermark NuGet package.
- Prepare the input document path and any parameters required by the example.
- Create a
Watermarkerinstance as shown in each snippet. - Call the relevant API methods (
Search,Add,Save, etc.). - Review the console output or the saved document to see the results.
These samples illustrate how to audit, verify, and manage watermarks with GroupDocs.Watermark for .NET. For the full API reference, detailed guides, and a free trial, visit the product documentation site.