GroupDocs.Annotation for .NET 20.8 Release Notes

Major Features

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

  • Improved adding annotations to TIFF Images
  • Improved annotating images mechanism (optimized performance)
  • Added Equals operator for comparing Annotations
  • Fixed issue with open CAD files
  • Fixed failed to import annotations that was added on older versions (added backward compatibility)
  • Fixed issue with ImageData is not saving on Image annotation
  • Fixed restoring image from ImageData

Full List of Issues Covering all Changes in this ReleaseĀ 

ANNOTATIONNET-1418Improve adding annotations to TIFF ImagesImprovement
ANNOTATIONNET-1450Improve ImageAnnotationHelperImprovement
ANNOTATIONNET-1452Add comparison operator (Equals) overload for Annotation ModelsImprovement
ANNOTATIONNET-1457Cad file can’t be openedBug
ANNOTATIONNET-1458Failed to import annotations that was added on older versionsBug
ANNOTATIONNET-1460ImageData is not saving on Image annotationBug
ANNOTATIONNET-1461Restore image from ImageDataBug

Public API and Backward Incompatible Changes

From this time Annotation Models overload the standard Equals method and also implement the IEquatable interface with the type of the class from which this method is called.

Example how to use it:

using (Annotator annotator = new Annotator("annotated_file.pdf"))
	var annotations = annotator.Get();
	ImageAnnotation imageAnnotation = new ImageAnnotation
		Box = new Rectangle(100, 100, 100, 100),
		Opacity = 0.7,
		PageNumber = 0,
		ImagePath = "",
		Angle = 100
	foreach (var annotation in annotations)
		if (imageAnnotation.Equals(annotation))
			// Do some stuff here...