I am using groupdocs in my application the version is 19.6
I updated the version to 20.8, groupdocs.annotations, groupdocs.signature works fine
now I updated viewer from 19.6 to 20.8, but I am facing lots of issues in my custom codes for ex
Viewer EX:
public static DocumentInfoContainer GetDocumentInfoByFilePath(string filePath)
{
try
{
ViewerConfig config = Utilities.GetConfigurations();
ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler(config);
using (System.IO.FileStream fs = System.IO.File.OpenRead(filePath))
{
DocumentInfoOptions options = new DocumentInfoOptions();
DocumentInfoContainer documentInfo = htmlHandler.GetDocumentInfo(fs, options);
return documentInfo;
}
}
catch (System.Exception exp)
{
Console.WriteLine(exp.Message);
}
return null;
}
public static DocumentInfoContainer GetDocumentInfoByFileBytes(byte[] fileBytes)
{
try
{
ViewerConfig config = Utilities.GetConfigurations();
ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler(config);
using (System.IO.MemoryStream stream = new MemoryStream(fileBytes))
{
DocumentInfoOptions options = new DocumentInfoOptions();
DocumentInfoContainer documentInfo = htmlHandler.GetDocumentInfo(stream, options);
return documentInfo;
}
}
catch (System.Exception exp)
{
Console.WriteLine(exp.Message);
}
return null;
}
now I know that config and handler api’s has been removed but I don’t know what should I use in the above scenarios as it is a custom code I cannot find anything in the example which I downloaded from github.
This Topic is created by Atir_Tahir using Email to Topic tool.