GroupDocs.Watermark for .NET 24.11 Release Notes
The release of GroupDocs.Watermark version 24.11 introduces new feature and also it includes several bug fixies.
Public API changes
Classes WordProcessingWatermarkOptions, SpreadsheetWatermarkOptions were removed as not used.
Full list of changes in this release
Key | Category | Summary |
---|---|---|
#WATERMARKNET-1914 | ★ Feature | Enriching searching options with PageNumber |
WATERMARKNET-1917 | 🔧 Fix | Option PagesSetup applies watermark for the second page when using FirstPage |
WATERMARKNET-1918 | 🔧 Fix | Option PagesSetup doesn’t work properly when OddPages selected |
Major Features
Enriching searching options with PageNumber
🌐 The search functionality has been enriched with the addition of PageNumber support, allowing .NET developers to quickly access specific pages within paginated documents. This enhancement simplifies navigation through large datasets, making searches more precise and efficient while improving the overall user experience in document management workflows.
using (Watermarker watermarker = new Watermarker("test.pdf",))
{
var searchCriteria = new TextSearchCriteria("test watermark");
searchCriteria.Pages = new List<int>() { 1, 3 };
var searchResults = watermarker.Search(searchCriteria);
}
Option PagesSetup doesn’t work properly when OddPages selected
🌐 We’ve resolved an issue where the PageSetup option did not function correctly when OddPages was selected. This fix ensures that page configurations are applied accurately, providing a smoother and more reliable experience for .NET developers working with customized page layouts.
using (Watermarker watermarker = new Watermarker("test.pdf"))
{
// Create a text watermark with a specified text and font
var watermark = new TextWatermark("test watermark", new Font("Arial", 48));
watermark.PagesSetup = new PagesSetup()
{
OddPages = true
};
watermarker.Add(watermark);
// Save the watermarked document and capture the watermarking result
WatermarkResult watermarkResult = watermarker.Save("result.pdf");
}