GroupDocs.Annotation for .NET 20.5 Release Notes

Major Features

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

  • Implemented managing different versions of annotated documents for Images and Diagrams
  • Implemented additional overloads for Save method without filestream
  • Fixed background opacity for PNG files
  • Fixed issue with PagesInfo for Excel files in MVC project
  • Fixed clearing comments for Excel files
  • Fixed unable to Save document as file that was used to create annotator

Full List of Issues Covering all Changes in this Release 

KeySummaryType
ANNOTATIONNET-1292Implement managing different versions of annotated documents for DiagramsFeature
ANNOTATIONNET-1291Implement managing different versions of annotated documents for ImagesFeature
ANNOTATIONNET-1369Add overloads for Annotator.Save method without stream or filepathImprovement
ANNOTATIONNET-1370Adding annotations to PNG image makes background non transparentBug
ANNOTATIONNET-1368Unable to Save document as file that was used to create annotatorBug
ANNOTATIONNET-1367A generic error occurred in GDI+ when processing Slides documentsBug
ANNOTATIONNET-1362TextAnnotations not cleaning in Cells after adding VersionsBug
ANNOTATIONNET-1361Comments not cleaned in Excel filesBug
ANNOTATIONNET-1358Wrong file metadata issue in Images after adding VersionsBug
ANNOTATIONNET-1357Empty PagesInfo for Excel file in MVC project.Bug

Public API and Backward Incompatible Changes

Starting from version 20.5 several Save methods overloads was added for user convenience

Now you can call Empty Save to save documents as input file for annotator. If you need to add some options, you may call Save method with only one parameter - SaveOptions, it will do the same as empty but will consider your options.

  1. Method accepts SaveOption parameter
using (FileStream fs = new FileStream(_resultPath, FileMode.Open))
{
	using (Annotator annotator = new Annotator(fs))
	{
		annotator.Save(new SaveOptions { Version = "1" });
	}
}
using (Annotator annotator = new Annotator(_resultPath))
{
    annotator.Save(new SaveOptions { Version = "1" });
}
  1. Empty Save Method
using (FileStream fs = new FileStream(_resultPath, FileMode.Open))
{
	using (Annotator annotator = new Annotator(fs))
	{
		annotator.Save();
	}
}
using (Annotator annotator = new Annotator(_resultPath))
{
    annotator.Save();
}