Document security made simple with Python watermarking solutions. This repository contains comprehensive examples demonstrating how to watermark files, add watermark, create watermark, remove watermark, and implement invisible watermarking for documents using GroupDocs.Watermark for Python via .NET.
Protect documents with watermarks across 40+ file formats with powerful content protection with watermarking capabilities:
- Custom watermark creation with personalized text and images
- Customize watermark appearance, positioning, and transparency
- Custom fonts support for branded watermarking solutions
- Watermark automation for enterprise Python workflows
- Advanced search and removal capabilities
- Invisible watermarking for documents with steganographic techniques
- Tiling watermarks across entire document pages for comprehensive coverage
| Directory/File | Description |
|---|---|
| Examples/ | Root folder containing all example scripts |
| ├── advanced_usage | Advanced usage examples demonstrating complex watermarking scenarios |
| ├── basic_usage | Basic examples for adding, editing, and removing watermarks |
| ├── quick_start | Quick start examples to run and test watermark features immediately |
| ├── run_examples.py | Main script to execute all examples |
| ├── test_files.py | Paths and settings for test files used in examples |
| └── utils.py | Utility functions for handling watermark operations |
- Call the following command from the root folder of repository
python .\Examples\run_examples.py - Review rendered files in
.\Examples\Outputfolder
Install via pip:
pip install groupdocs-watermark-netLearn how to watermark your documents with this simple Python example:
import groupdocs.watermark as gw
import groupdocs.watermark.watermarks as gww
import groupdocs.watermark.common as gwс
def run():
with gw.Watermarker("sample.docx") as watermarker:
font = gww.Font("Arial", 36.0)
watermark = gww.TextWatermark("top secret", font)
watermark.foreground_color = gww.Color.red;
watermark.horizontal_alignment = gwс.HorizontalAlignment.CENTER
watermark.vertical_alignment = gwс.VerticalAlignment.CENTER
watermarker.add(watermark)
watermarker.save(join(output_directory, "result.docx"))import groupdocs.watermark as gw
import groupdocs.watermark.watermarks as gww
import groupdocs.watermark.common as gwс
def run():
with gw.Watermarker("sample.xlsx") 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.xlsx"))- How to watermark in PDF documents with Python
- Create watermark with custom fonts and styling
- Add watermark to multiple pages simultaneously
- Customize watermark transparency, rotation, and positioning — with the ability to apply tiled watermarks across entire pages for full coverage.
- Delete watermark from specific document regions
- Can you remove watermark from password-protected files
- Watermark automation for enterprise document management systems
- Content protection with watermarking for sensitive business documents
- Document security compliance implementations
- Customized product branding with corporate watermarks
How to watermark files across multiple formats using Python:
- 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.
- Python 3.6+
- .NET runtime (automatically handled via Python.NET)
- Compatible with Windows, macOS, and Linux
- Complete Python API Documentation
- Live Demo - How to Watermark Online
- Python Package on PyPI
- Developer Blog
- Free Support Forum - Get help with how to remove watermark from free community
- Search Documentation - Find specific watermark in Python solutions
- Temporary License - Test full features
python-watermarking document-security content-protection pdf-watermark document-watermark remove-watermark add-watermark custom-watermark enterprise-security python-library
Start securing your Python applications today! Clone this repository to explore comprehensive examples of how to watermark a document, implement document security, and leverage watermark automation for enterprise Python solutions.