Skip to content
ComPDF
DemoSampleAPI ReferenceFAQ
New Release

Open-Source PDF SDK & AI Document Processing

Get the full self-hosted SDK and AI document processing on GitHub. One-click deploy to quickly build your document workflows.

Delete Watermark

To delete watermarks, follow these steps:

Call DeleteWatermarks() on the CPDFDocument object to remove all watermarks from the document.

This example shows how to delete the watermark:

swift
//Remove the first watermark from the document.
let watermarks = document?.watermarks()
document?.removeWatermark(watermarks[0])
objective-c
//Remove the first watermark from the document.
NSArray *watermarks = [document watermarks];
[document removeWatermark:watermarks[0]];