Skip to content
ComPDF
DemoAPI 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.

Guides

Remove Watermark

Remove Watermarks

Use removeAllWatermarks to remove all watermarks from the current document.

tsx
removeAllWatermarks(): Promise<boolean>;

const success = await pdfReaderRef.current?._pdfDocument.removeAllWatermarks();
console.log("Remove all watermarks result:", success);

Notes

  • removeAllWatermarks removes all watermarks from the current document.
  • removeAllWatermarks returns true when the operation succeeds and false when the native platform does not complete the operation.
  • Watermark changes modify the in-memory document. To persist the changes, call save or saveAs according to your document workflow.