GroupDocs.Watermark for .NET 24.5 Release Notes
This page contains release notes for GroupDocs.watermark for .NET 24.5
The release of GroupDocs.Watermark version 24.5 enhances the feature which allows to use custom fonts
Full list of changes in this release
Key | Category | Summary |
---|---|---|
WATERMARKNET-1676 | Enhancement | Extending the functionality of using custom fonts for Spreadsheet documents |
WATERMARKNET-1677 | Enhancement | Extending the functionality of using custom fonts for Word and Diagram documents |
Major Features
Extending the functionality of using custom fonts for Spreadsheet documents
🌐 This feature allows user to configure the folder where custom fonts are located. Folder should contain TrueType font files
var fontsFolder = @"c:\CustomFonts\";
using (Watermarker watermarker = new Watermarker("sample.xlsx"))
{
// Initialize the font to be used for watermark
Font font = new Font("CustomFontName", fontsFolder, 36);
// Create the watermark object
TextWatermark watermark = new TextWatermark("Test watermark", font);
// Set watermark properties
watermark.ForegroundColor = Color.Blue;
watermark.Opacity = 0.5;
watermark.X = 10;
watermark.Y = 10;
// Add watermark
watermarker.Add(watermark);
watermarker.Save("result.xlsx");
}