GroupDocs.Watermark for .NET 24.1 Release Notes

The release of GroupDocs.watermark version 24.1 adds new enhancements and fixes bugs to further improve the product experience.

Full list of changes in this release

KeyCategorySummary
WATERMARKNET-1516EnhancementImproved Watermarker initialization performance
WATERMARKNET-4824🔧 FixInitializing Watermaker on multiple threads using .NET uses locking

Major Features

Improved Watermarker initialization performance

🌐 We’re thrilled to announce a significant enhancement that transforms the user experience — an impressive boost in the initialization performance of Watermarker object.We’ve fine-tuned the initialization process to be faster and more efficient than ever before. Now, users can seamlessly apply watermarks to their documents with lightning speed, enhancing productivity and reducing wait times. Maximum efficiency will be achieved if you clearly know the document type and specify it explicitly in the LoadOptions implementation.

//When we 100% know that test.pdf is a PDF document, than for better performance specify new PdfLoadOptions().
using (Watermarker watermarker = new Watermarker("test.pdf", new PdfLoadOptions()))
{
    // Create a text watermark with a specified text and font
    TextWatermark textWatermark = new TextWatermark("This is a test watermark", new Font("Arial", 48));
  
    // Add the text watermark with additional options 
    PdfArtifactWatermarkOptions textWatermarkOptions = new PdfArtifactWatermarkOptions();
    watermarker.Add(textWatermark, textWatermarkOptions);

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

Initializing Watermaker on multiple threads using .NET uses locking

🌐 We’ve addressed a bug where the time between the two threads was close when initializing Watermaker in multi threads using .NET. This issue has been resolved, there is not lock mechanism in the initialization anymore