Skip to content
ComPDF
DemoFAQ

PDF Generation Template Editor

Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.

View on GitHub
Guides

Remove Watermark

To remove a single watermark by index, use removeWatermark:

dart
Future<bool> removeWatermark(int index);

final bool success = await document.removeWatermark(0);
print('Remove watermark result: $success');

To remove all watermarks from the document, use removeAllWatermarks:

dart
Future<void> removeAllWatermarks();

await document.removeAllWatermarks();