What is usage of fd.xml in annotation API for .NET

I noticed that a fd.xml file is created in the App_data\Temp directory.



What is it used for? and how will it work in a load balanced environment?



Thanks.



Regards,



Leo

@leobarcenas,


Thank you for your query.

“fd.xml” file created for each document opened for annotation in viewer to hold the document schema and content information such as number of page, line height, line width, page height, page width, coordinates and other information to be used by the annotation tools, please click here to see the calling initiated for each file.

DocumentInfoContainer docInfo = annotator.GetDocumentInfo(request);
result.documentDescription = new FileDataJsonSerializer(docInfo.Pages).Serialize(true);
result.docType = docInfo.DocumentType;
result.fileType = docInfo.FileType;


If you will need any help or you will have any other questions regarding GroupDocs.Annotation for .NET API please feel free to ask.

Warm Regards,

Thanks,



Is it possible to change the location of this file? Or does it follow the convention set from the StorageLocation?



When in LB scenario, each server will have a copy of the same file. Is this your recommendation?



Also, when is this file used? client-side or server-side?





Thanks.



Leo

@leobarcenas

You are welcome.

Your query regarding Storage Location and Load Balancing Environment, We are not sure about it as different approaches can be used because of GroupDocs.Annotation for .NET API is independent of user interface. Also our front-end example is open source so you can modify it as per your environment requirement , However we will also investigate on this and will share our findings to help you.

We will come back to you shortly.


Best Wishes.


@leobarcenas


Thank you for your patience.

GroupDocs.Annotation for .NET API use the “StoragePath” as base path, all required files and folders like temp also created at “StoragePath”, so it is possible to utilize any required path.

In LB scenario each hosted instance will also use the “StoragePath” so if it is shared path between different hosting then it will be utilized.

Currently in open source front-end MVC/WebForms applications we have used the application “App_Data” folder like you can see here and which can be changed as per your requirements.

Please make sure to change all “App_Data” folder hard-coded path in our existing open source front-end MVC/WebForms, if you change to other folder location.

If you will need any help or you will have any other questions regarding GroupDocs.Annotation for .NET API please feel free to ask.

Warm Regards,