GroupDocs.Watermark for Python via .NET 24.9.1 Release Notes

The release of GroupDocs.Watermark version 24.9.1 contains several remarkable features

Full list of changes in this release

KeyCategorySummary
WATERMARKPYTHON-1728★ FeatureIntroduced pdf supporting
WATERMARKPYTHON-1729★ FeatureAdded ability to create tiled watermarks
WATERMARKPYTHON-1730★ FeatureAdded ability to use custom fonts for text watermarks

Introduced pdf supporting

🌐 New version now supports adding watermarks to PDF documents, enabling users to easily protect and brand their PDF files

    with gw.Watermarker("sample.pdf") as watermarker:
        font = gwo.Font("Arial", 36.0)
        watermark = gwo.TextWatermark("top secret", font)
        watermark.x = 100.0
        watermark.y = 450.0
        watermark.opacity = 0.4
        watermark.rotate_angle = 45.0
        watermark.foreground_color = gww.Color.red

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

Add ability to create tiled watermarks

🌐 With the added ability to create tiled watermarks, Python developers can now efficiently apply a repeated watermark pattern over large images or documents for enhanced copyright protection.

    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.opacity = 0.4
        watermark.rotate_angle = 45.0

        #configuring tile options
        line_spacing = gww.MeasureValue()
        line_spacing.measure_type = gww.TileMeasureType.PERCENT
        line_spacing.value = 12.0

        watermark_spacing = gww.MeasureValue()
        watermark_spacing.measure_type = gww.TileMeasureType.PERCENT
        watermark_spacing.value = 10.0

        watermark.tile_options = gww.TileOptions()
        watermark.tile_options.line_spacing = line_spacing
        watermark.tile_options.watermark_spacing = watermark_spacing
            
        watermarker.add(watermark)
        watermarker.save("result.docx")

Added ability to use custom fonts for text watermarks

🌐 The latest update introduces the ability to use custom fonts for text watermarks, providing a more versatile way to create unique and branded watermarks.

    fonts_folder = "c://Fonts"

    with gw.Watermarker("image.png") as watermarker:
        font = gww.Font("OT Chekharda Bold Italic", fonts_folder, 36.0)
        watermark = gww.TextWatermark("top secret", font)
        watermark.foreground_color = gww.Color.red;
        watermark.opacity = 0.4
        watermark.x = 10.0
        watermark.y = 500.0
            
        watermarker.add(watermark)
        watermarker.save("result.png")