We are excited to announce the inaugural release of GroupDocs.Watermark for Python via .NET 24.5 on Windows AMD64 architecture! This innovative Python library simplifies adding watermarks to various document formats, equipping developers to protect sensitive data, maintain brand identity, and enhance document integrity.
Introducing Text and Image Watermarking
Seamlessly integrate text and image watermarks into multi-format documents within your Python document watermarking applications. Customize text overlays, colors, positioning, and more for a tailored document branding experience on Win64-based systems.
Add text watermarks to your documents:
with gw.Watermarker(test_files.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"))
Source*
Add image watermarks to your documents:
with gw.Watermarker(test_files.sample_xlsx) as watermarker:
watermark = gww.ImageWatermark(test_files.LogoPng)
watermark.horizontal_alignment = gwс.HorizontalAlignment.CENTER
watermark.vertical_alignment = gwс.VerticalAlignment.CENTER
watermarker.add(watermark)
watermarker.save(join(output_directory, "result.xlsx"))
Source*
Simplified Watermark Searching
Search specific watermarks within your documents with ease using this functionality on Windows 64-bit systems. It simplifies managing and removing existing watermarks as needed. Check out how this feature works in the following code example.
with gw.Watermarker(test_files.sample_docx_with_watermarks) as watermarker:
possible_watermarks = watermarker.search()
for possible_watermark in possible_watermarks:
if possible_watermark.image_data is not None:
print(len(possible_watermark.image_data))
print(possible_watermark.text)
print(possible_watermark.x)
print(possible_watermark.y)
print(possible_watermark.rotate_angle)
print(possible_watermark.width)
print(possible_watermark.height)
Source*
You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting GroupDocs.Watermark for Python via .NET 24.5 Release Notes.