GroupDocs.Annotation for .NET 23.1 Release Notes

Full list of changes in this release

KeySummaryCategory
ANNOTATIONNET-2147Added an ability to set a FontSize property for ReplacementAnnotationFeature
ANNOTATIONNET-2156Fixed the broken link at the end of SquigglyAnnotation pageFix

Major Features

Added ability to set FontSize property for ReplacementAnnotation

In this release we’ve implenented IFontSize interface for IReplacementAnnotation. From user perspective, it means that from now there is an ability to set a font size for replacement annotation.

With the replacement annotation you are allowed to replace text on the document to any other text you want. With the v23.1 you are also allowed to specify the FontSize of the new text. Here is a small code snippet that demonstrate how you can achieve this:

using (Annotator annotator = new Annotator("input.pdf"))
{
    ReplacementAnnotation replacement = new ReplacementAnnotation
    {
	    FontSize = 50,
	    // other propeties
    };
    annotator.Add(replacement);
    annotator.Save("result.pdf");
}

The following image demonstrates the result:

Learn more about replacement annotation and it’s other features here: ReplacementAnnotation