Free Support Forum -

Is AnnotationsExporter.Perform hard-coded to use the user's temp directory?


This is for .NET.

Can this be changed? Ideally it would write to the same place as the storage location set by WidgetFactory.Initialize()


Hello Jason,

Yes, in GroupDocs.Annotation for .NET “AnnotationsExporter.Perform” method is hard-coded to use current user’s temporary directory and it cannot be changed. The idea is to have a directory which would exist in any way and will be guaranteed accessible for read/write. “Path.GetTempPath()” has such functionality.

GroupDocs.Annotation cannot rely on storage location “WidgetFactory.Initialize” because “AnnotationsExporter.Perform” is designed to be used even if storage location is not initialized.

If you will have more questions please feel free to contact us.