GroupDocs.Watermark for .NET 24.3 Release Notes

The release of GroupDocs.Watermark version 24.3 introduces significant enhancements aimed at extending the functionality of tiled watermarks across various document types, including Excel, Visio, Presentation, and image formats.

Full list of changes in this release

KeyCategorySummary
WATERMARKNET-1608EnhancementExtending the functionality of tiled watermarks in a spreadsheet type document
WATERMARKNET-1606EnhancementExtending the functionality of tiled watermarks for Visio documents
WATERMARKNET-1601EnhancementExtending the functionality of tiled watermarks for Image documents
WATERMARKNET-1604EnhancementExtending the functionality of tiled watermarks for Presentation formats
WATERMARKNET-1609🔧 FixSpreadsheet shape watermark size doesn’t match the provided font size
WATERMARKNET-1605🔧 FixVisio document cannot be read when passing DiagramLoadOptions starting from Net standart
WATERMARKNET-1602🔧 FixTiled watermark line has offsets for positive rotation angles
WATERMARKNET-1575🔧 FixPdf watermark uses artefact approach when passing PdfXObjectWatermarkOptions

Major Features

Extending the functionality of tiled watermarks in a spreadsheet type document

🌐 These enhancement bring advanced capabilities to our product, allowing users to apply tiled watermarks more effectively and seamlessly within Excel spreadsheets

using (Watermarker watermarker = new Watermarker("test.xlsx", new SpreadsheetLoadOptions()))
{
    // Create a text watermark with a specified text and font
    var watermark = new TextWatermark("watermark", new Font("Arial", 48));  

    // Configure TileOptions
    watermark.TileOptions = new TileOptions()
    {
        LineSpacing = new MeasureValue()
        {
            MeasureType = TileMeasureType.Percent,
            Value = 12
        },
        WatermarkSpacing = new MeasureValue()
        {
            MeasureType = TileMeasureType.Percent,
            Value = 10
        },
    };

    watermark.Opacity = 0.3;
    watermark.RotateAngle = -30;

    // Add the text watermark with additional options 
    var watermarkOptions = new SpreadsheetWatermarkShapeOptions();
    watermarkOptions.IsLocked = true;
    watermarker.Add(watermark, watermarkOptions);

    // Save the watermarked document and capture the watermarking result
    WatermarkResult watermarkResult = watermarker.Save("result.xlsx");
}

Extending the functionality of tiled watermarks for Image formats

using (Watermarker watermarker = new Watermarker("test.png", new ImageLoadOptions()))
{
    // Create a text watermark with a specified text and font
    var watermark = new TextWatermark("watermark", new Font("Arial", 48));  

    // Configure TileOptions
    watermark.TileOptions = new TileOptions()
    {
        LineSpacing = new MeasureValue()
        {
            MeasureType = TileMeasureType.Percent,
            Value = 12
        },
        WatermarkSpacing = new MeasureValue()
        {
            MeasureType = TileMeasureType.Percent,
            Value = 10
        },
    };

    watermark.Opacity = 0.3;
    watermark.RotateAngle = -30;

    watermarker.Add(watermark);

    // Save the watermarked document and capture the watermarking result
    WatermarkResult watermarkResult = watermarker.Save("result.png");
}