Another month, another release! GroupDocs.Watermark for .NET 19.11 has been released with 4 improvements and 1 bug fix. So in this article, I’ll give you a brief overview of each improvement and fix we have included in the latest release.
First of all, let’s begin with the improvements and then see what has been fixed in v19.11.
Adding Watermark to Password Protected Documents
GroupDocs.Watermark already supports adding watermark to the password protected documents. However, we have improved and simplified the usage of this feature by adding Password property to the common LoadOptions class. This is how you will add watermark to a password protected document using v19.11 or later.
FormatFamily enumeration has been added toGroupDocs.Watermark.Common namespace to group the supported document formats. The following groups have been made based on the type of the document:
- Unknown – Unknown file formats.
- Diagram – Visio formats (VSD, VSDX etc.).
- Email – Email formats (EML, MSG, etc.).
- Image – Image formats (PNG, JPG, etc.).
- MultiframeImage – Multi-frame image formats (TIFF etc.).
- Pdf – PDF format.
- Presentation – Presentation formats (PPT, PPTX, etc.).
- Spreadsheet – Spreadsheet formats (XLS, XLSX, etc.).
- WordProcessing – Word processing formats (DOC, DOCX, etc.).
MultiframeImageWatermarkOptions class has been added to simplify the process of adding watermarks to any supported multi-frame image. The following code sample shows how to use this class.
FontNotFoundException Class for PDF Documents
There could be the case when you add a text watermark to a PDF document with a font that is not available/installed at your end. For such a case, we have added the FontNotFoundException class for the exception that is thrown when the requested font is not found.
In the previous versions of the API, System.NullReferenceException was thrown when finding the possible watermarks in some of the PDF documents. This issue has been resolved and the fix is available in v19.11.
Visit the documentation to learn more about the GroupDocs.Watermark for .NET API. You can evaluate all the features of the API by downloading or cloning the source code examples from the GitHub repository. In case you find some issue, feel free to contact us via our forum.