Removes all watermarks in the collection from the document.
Learn more about removing watermarks in the GroupDocs documentation.
defremove(self,possible_watermarks):...
Parameter
Type
Description
possible_watermarks
PossibleWatermarkCollection
The collection of watermarks to remove.
Example
fromgroupdocs.watermarkimportWatermarkerfromgroupdocs.watermark.search.search_criteriaimportTextSearchCriteriadefremove_watermark():withWatermarker("./document.pdf")aswatermarker:possible=watermarker.search()# Remove in reverse order to keep indexes validforiinrange(len(possible)-1,-1,-1):watermarker.remove(possible[i])watermarker.save("./output.pdf")