Metadata-Version: 2.1
Name: groupdocs-watermark-net
Version: 25.12
Summary: GroupDocs.Watermark is a powerful document watermarking API that allows to add image and text watermarks. Additionally, it can search and remove the watermarks which were added to the documents by other third-party software.
Home-page: https://products.groupdocs.com/watermark
Author: GroupDocs
License: Other/Proprietary License
Keywords: watermark,digital-watermarking,text-watermark,image-watermark,pdf-watermark,pptx-docx-xlsx,png,word,excel,powerpoint,visio,image
Platform: win32
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: Unix
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Utilities
Requires-Python: >=3.5,<3.14
Description-Content-Type: text/markdown

[![Docs](https://img.shields.io/badge/Docs-388e3c?style=for-the-badge&logo=Hugo&logoColor=white)](https://docs.groupdocs.com/watermark/python-net-net/) [![API Ref](https://img.shields.io/badge/Reference-f39c12?style=for-the-badge&logo=html5&logoColor=white)](https://reference.groupdocs.com/watermark/python-net-net/) [![Examples](https://img.shields.io/badge/Examples-1565c0?style=for-the-badge&logo=Github&logoColor=white)](https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-Python-via-.NET) [![Blog](https://img.shields.io/badge/Blog-d32f2f?style=for-the-badge&logo=WordPress&logoColor=white)](https://blog.groupdocs.com/category/watermark/) [![Releases](https://img.shields.io/badge/Releases-43a047?style=for-the-badge)](https://releases.groupdocs.com/watermark/python-net-net/) [![Support](https://img.shields.io/badge/Support-7b1fa2?style=for-the-badge&logo=Discourse&logoColor=white)](https://forum.groupdocs.com/c/watermark) [![License](https://img.shields.io/badge/License-ff6f00?style=for-the-badge&logo=rocket&logoColor=white)](https://purchase.groupdocs.com/temporary-license/)


[GroupDocs.Watermark for Python via .NET](https://products.groupdocs.com/watermark/python-net-net/) is a powerful document watermarking API. 

![Watermark example](https://raw.githubusercontent.com/groupdocs/groupdocs.github.io/master/img/github_samples/groupdocs-watermark/watermark_presentation.gif)


### Behold, the power of GroupDocs.Watermark:

How easy you can add a text watermark to a document:

```py
import groupdocs.watermark as gw
import groupDocs.watermark.watermarks as gwo

# Adding text watermark in the pdf file
with gw.Watermarker("input.pdf") as watermarker:

	font = gwo.Font("Arial", 36.0)

	watermark = gwo.TextWatermark("top secret", font)
	watermark.x = 100.0;
	watermark.y = 250.0;

  watermarker.add(watermark)
  watermarker.save("out.pdf");
```

See [similar code examples](https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-Python-via-.NET).

GroupDocs.Watermark for Python via .NET allows to add image and text watermarks. Additionally, API can search and remove the watermarks which were already added to the documents by other third-party software.
## Beloved Features

**GroupDocs.Watermark for Python via .NET** empowers you to protect and brand your documents with ease and precision:

- [**Add text and image watermarks**](https://docs.groupdocs.com/watermark/python-net/add-text/) to Word, PDF, Excel, PowerPoint, images, and emails.  
- [**Tiling and repeating watermarks**](https://docs.groupdocs.com/watermark/python-net/adding-repeated-watermarks/) across pages or slides for robust, tamper-resistant protection.  
- [**Add watermarks to Excel worksheets**](https://docs.groupdocs.com/watermark/python/excel-watermarks/) as headers, footers, backgrounds, or over cell ranges.  
- [**Search and remove text and image watermarks**](https://docs.groupdocs.com/watermark/python-net/clear/) from documents, even inside shapes, headers, footers, and nested objects.  
- [**Find watermarks by content or patterns**](https://docs.groupdocs.com/watermark/python-net/searching-watermarks/) using text search, wildcards, or regular expressions.  
- [**Search watermarks by formatting**](https://docs.groupdocs.com/watermark/python-net/searching-watermarks/#text-formatting-search-criteria) like font, color, size, opacity, rotation, and layering.  
- [**Apply watermarks to embedded images**](https://docs.groupdocs.com/watermark/python-net/adding-image-watermarks/) within Word, Excel, PowerPoint, Visio, and email documents.  
- [**Rasterize PDF documents or pages**](https://docs.groupdocs.com/watermark/python-net/rasterize-document-or-page/) to flatten content and prevent text extraction.  
- [**Handle PDF and email attachments**](https://docs.groupdocs.com/watermark/python-net/email-attachments/), including detecting and watermarking nested files.  

**GroupDocs.Watermark for Python via .NET** works on Windows, Linux, and macOS, supporting both 32-bit and 64-bit Python 3.5+ environments.

If you’d like to dive deeper or simply enjoy learning more about watermarking, explore our [**blog posts**](https://blog.groupdocs.com/).  
You can start with this article on [**tiling watermarks in Python**](https://blog.groupdocs.com/watermark/tiling-watermark-python/).

## Supported File Formats

With **GroupDocs.Watermark for Python via .NET**, developers and applications can process files of the following categories:

- **Fixed Layout:** PDF 
- **Microsoft Word:** DOC, DOT, DOCX, DOCM, DOTX, DOTM, RTF  
- **Microsoft Excel:** XLSX, XLSM, XLTM, XLT, XLTX, XLS  
- **Microsoft PowerPoint:** PPTX, PPTM, PPSX, PPSM, POTX, POTM, PPT, PPS  
- **Microsoft Visio:** VSD, VDX, VSDX, VSTX, VSS, VSSX, VSDM, VSSM, VSTM, VTX, VSX  
- **OpenOffice:** ODT  
- **Email:** EML, EMLX, OFT, MSG  
- **Image:** BMP, GIF, JPG/JPEG/JPE, JP2, PNG, TIFF, WEBP

See [detailed list of file formats](https://docs.groupdocs.com/watermark/python-net/supported-document-formats/).

## Get Started

Ready to try GroupDocs.Watermark for Python via .NET?

Fetch the package and install **GroupDocs.Watermark**. Run this command: `pip install groupdocs-watermark-net`

If you already have **GroupDocs.Watermark** installed and want to get the latest version, 
you have to run `pip install --upgrade groupdocs-watermark-net` instead. 

Check out GroupDocs.Watermark for Python for .NET [documentation](http://docs.groupdocs.com/watermark/python-net/).  

## Add a Image Watermark to a PDF Document

You may add watermarks to documents or images from local disks, as well as from streams.

```py
import groupdocs.watermark as gw
import groupdocs.watermark.watermarks as gww
import groupdocs.watermark.common as gwс

def run():
  with gw.Watermarker("sample.pdf") as watermarker:
      watermark = gww.ImageWatermark("logo.png")
      watermark.horizontal_alignment = gwс.HorizontalAlignment.CENTER
      watermark.vertical_alignment = gwс.VerticalAlignment.CENTER

      watermarker.add(watermark)
      watermarker.save(join(output_directory, "result.pdf"))
```


## Add a Tiling Watermark to a Document

Apply a text watermark across the whole page in a repeated pattern.

```py
import groupdocs.watermark as gw
import groupdocs.watermark.watermarks as gww

with gw.Watermarker("sample.pdf") as watermarker:
    font = gww.Font("Arial", 19.0, gww.FontStyle.BOLD | gww.FontStyle.ITALIC)
    watermark = gww.TextWatermark("Watermark", font)
    watermark.foreground_color = gww.Color.red

    watermark.tile_options = gww.TileOptions()
    watermark.tile_options.line_spacing = gww.MeasureValue(gww.TileMeasureType.PERCENT, 12)
    watermark.tile_options.watermark_spacing = gww.MeasureValue(gww.TileMeasureType.PERCENT, 10)

    watermark.opacity = 0.2
    watermark.rotate_angle = -30

    watermarker.add(watermark)
    watermarker.save("result.pdf")
```


## Remove Watermark from a Document

Search for possible watermarks and remove them from the document.

```py
import groupdocs.watermark as gw

with gw.Watermarker("document.pdf") as watermarker:
    possible = watermarker.search()

    # Remove watermark at the specified index
    possible.remove_at(0)

    # Remove a specific watermark instance
    if possible.count > 0:
        possible.remove(possible[0])

    watermarker.save("document.pdf")
```

## Search Watermark in a Document

Use Watermarker.search() to scan a document for objects that can be treated as watermarks. This includes watermarks added by third‑party tools.

```py
import groupdocs.watermark as gw

with gw.Watermarker("document.pdf") as watermarker:
    possible = watermarker.search()
    for wm in possible:
        if wm.image_data is not None:
            print(len(wm.image_data))

        print("Text", wm.text)
        print("X", wm.x)
        print("Y", wm.y)
        print("RotateAngle", wm.rotate_angle)
        print("Width", wm.width)
        print("Height", wm.height)
        print("PageNumber", wm.page_number)
        print("")
```

>GroupDocs.Watermark for Python requires you to use python programming language. For Node.js, Java and .NET languages, we recommend you get [GroupDocs.Watermark for Node.js](https://products.groupdocs.com/watermark/nodejs-java/), [GroupDocs.Watermark for Java](https://products.groupdocs.com/watermark/java/) and [GroupDocs.Watermark for .NET](https://products.groupdocs.com/watermark/net/), respectively.


[Product Page](https://products.groupdocs.com/watermark/python-net-net/) | [Docs](https://docs.groupdocs.com/watermark/python-net-net/) | [Demos](https://products.groupdocs.app/watermark/family) | [API Reference](https://reference.groupdocs.com/watermark/) | [Blog](https://blog.groupdocs.com/category/watermark/) | [Search](https://search.groupdocs.com/) | [Free Support](https://forum.groupdocs.com/c/watermark) | [Temporary License](https://purchase.groupdocs.com/temporary-license)

