GroupDocs.Annotation for .NET 21.8 Release Notes

Major Features

Below is the list of most notable changes in release of GroupDocs.Annotation for .NET 21.8:

  • Implemented ability to auto scale Watermark depending on the length of the string for all most popular supported document formats.

Full List of Issues Covering all Changes in this Release

KeySummaryIssue Type
ANNOTATIONNET-1783Auto scale Watermark string depending on the length of the string for PDF documentsFeature
ANNOTATIONNET-1782Auto scale Watermark string depending on the length of the string for Images documentFeature
ANNOTATIONNET-1781Auto scale Watermark string depending on the length of the string for Cells documentFeature
ANNOTATIONNET-1780Auto scale Watermark string depending on the length of the string for Slides documentFeature
ANNOTATIONNET-1779Auto scale Watermark string depending on the length of the string for Diagrams documentFeature
ANNOTATIONNET-1778Auto scale Watermark string depending on the length of the string for Word documentFeature

Public API and Backward Incompatible Changes

1. Ability to customize watermark for automatic scaling

In version 21.8 we have added a auto scaling for watermark, that allows watermark string to auto scale depending on the length of the string. To learn more about this auto scale follow this link.

WatermarkAnnotation watermark = new WatermarkAnnotation
    {
        Angle = 75,
        Box = new Rectangle(200, 200, 100, 50),
        CreatedOn = DateTime.Now,
        Text = "Watermark",
        FontColor = 65535,
        FontSize = 12,
        Message = "This is watermark annotation",
        Opacity = 0.7,
        Replies = new List<Reply>
        {
            new Reply
            {
                Comment = "First comment",
                RepliedOn = DateTime.Now
            },
            new Reply
            {
                Comment = "Second comment",
                RepliedOn = DateTime.Now
            }
        }
    };
    watermark.AutoScale = true;// watermark will be auto scaled according to string length
    annotator.Add(watermark);