Hi Usman
Thanks for the response.
with your guidlines we are able to implement VIEWERNET-484 and VIEWERNET-479.
Thanks for this.
in respective of VIEWERNET-304 - Processing files from stream without specifying fileName
We are currently using Groupdocs Legacy UI html based rendering with below codes.
if (request.UseHtmlBasedEngine)
{
var docInfo = _htmlHandler.GetDocumentInfo(new DocumentInfoOptions(request.Path);
result.documentDescription = new FileDataJsonSerializer(docInfo.Pages, new FileDataOptions()).Serialize(false);
result.docType = docInfo.DocumentType;
result.fileType = docInfo.FileType;
var htmlOptions = new HtmlOptions { IsResourcesEmbedded = true };
var htmlPages = htmlHandler.GetPages(request.Path, htmlOptions);
result.pageHtml = htmlPages.Select( => _.HtmlContent).ToArray();
//NOTE: Fix for incomplete cells document
for (int i = 0; i < result.pageHtml.Length; i++)
{
var html = result.pageHtml[i];
var indexOfScript = html.IndexOf(“script”);
if (indexOfScript > 0)
result.pageHtml[i] = html.Substring(0, indexOfScript);
}
}
I believe we could not skip the getDocumentInfo method because we are displaying the output to UI.
Here Groupdocs Legacy UI is most important for us and getDocumentInfo method only takes path of file but not stream of file.
so please provide a solution which has following
it should use Legacy UI of groupdocs(which was privided in 2.x generation)
It should use FileStream not any Path(example request.Path).
Please let us know if you require further explanation to grasp the situation properly.
keen to hear from you.
Thanks