GroupDocs.Watermark for .NET 24.2 Release Notes

The release of GroupDocs.watermark version 24.2 introduces an innovative feature that many of our users have eagerly anticipated

Full list of changes in this release

KeyCategorySummary
WATERMARKNET-1333★ FeatureAdding a watermark more than once on a page
WATERMARKNET-1520★ FeatureAdd ability to create tiled watermarks in the Pdf document

Major Features

Adding a watermark more than once on a page

🌐 This new feature, requested by our users, allows for the seamless creation of repeated watermarks, enhancing the overall document presentation. We’ve designed this feature to be user-friendly, ensuring that even those with minimal technical expertise can effortlessly apply and customize tiled watermarks, whether they prefer text or images. Users can fine-tune the spacing between parallel tiles and adjust the distance between watermarks in each line, offering precise control over the layout.

using (Watermarker watermarker = new Watermarker("test.pdf", new PdfLoadOptions()))
{
    // 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 
    PdfArtifactWatermarkOptions textWatermarkOptions = new PdfArtifactWatermarkOptions();
    watermarker.Add(watermark, textWatermarkOptions);

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

With the added support for offset tiles, users have the flexibility to create visually dynamic and asymmetrical arrangements. This feature enhances creativity, enabling the design of distinctive and eye-catching tiled watermarks. Also there is an ability to apply any desired rotation angle to their tiled watermarks, adding a unique and captivating touch to their documents.

using (Watermarker watermarker = new Watermarker("test.pdf", new PdfLoadOptions()))
{
    // Create an image watermark with a specified text and font
    var watermark = new ImageWatermark(imagePath);  
    watermark.TileOptions = new TileOptions()
    {
        TileType = TileType.Offset,
        LineSpacing = new MeasureValue()
        {
            MeasureType = TileMeasureType.Pixel,
            Value = 100
        },
        WatermarkSpacing = new MeasureValue()
        {
            MeasureType = TileMeasureType.Pixel,
            Value = 150
        },
    };

    watermark.Opacity = 0.3;
    watermark.RotateAngle = 45;

    // Add the text watermark with additional options 
    PdfArtifactWatermarkOptions textWatermarkOptions = new PdfArtifactWatermarkOptions();
    watermarker.Add(watermark, textWatermarkOptions);

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

Add ability to create tiled watermarks in the Pdf document

🌐 While the tiled watermark feature is currently available exclusively for PDF documents, we are excited to share that our commitment to innovation extends to all document types. Stay tuned for upcoming releases, where we plan to expand this powerful feature to accommodate a broader range of document formats, providing even more flexibility and creative possibilities for our users.