GroupDocs.Annotation for .NET 23.1 Release Notes
Full list of changes in this release
Key | Summary | Category |
---|---|---|
ANNOTATIONNET-2147 | Added an ability to set a FontSize property for ReplacementAnnotation | Feature |
ANNOTATIONNET-2156 | Fixed the broken link at the end of SquigglyAnnotation page | Fix |
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