Hello vladimir.litvinchik
libgdiplus version is 6.0.5.
libgdiplus is already the newest version (6.0.5-0xamarin1+ubuntu2004b1)
The dockerfile you sent is the same as the dockerfile we have.
Since there is no function that gives the error in the example project you sent by saying that the excel file is working in Linux, it is normal that it works without an error. But the function giving error is as follows. These functions are the codes of the project in the URL below that you sent us.
It is the method in the ViewerController class under Controllers in the Viewer.UI.Api in this project.
Attached is the function that gives an error as in the document I sent you.
Error Screen Picture.zip (246.1 KB)
I checked the link you sent. libgdiplus version is 6.0.5. because the problem is different. PDF to PNG conversion issue on CentOS 7
[HttpGet]
public async Task<IActionResult> LoadDocumentDescription(string ep)
{
try
{
//string storagePath = Path.Combine(new DirectoryInfo(AppDomain.CurrentDomain.BaseDirectory).Parent.FullName, "MyStaticFiles");
//string filepath = string.Format("{0}\\{1}", storagePath, ep + ".png");
DocumentInfo documentDescription =
await _viewer.GetDocumentInfoAsync(ep, "");
var result = new LoadDocumentDescriptionResponse
{
Guid = ep,
PrintAllowed = documentDescription.PrintAllowed,
Pages = documentDescription.Pages.Select(p => new PageDescription
{
Width = p.Width,
Height = p.Height,
Number = p.Number,
SheetName = p.Name,
}).ToList()
};
return OkJsonResult(result);
}
catch (Exception ex)
{
if (ex.Message.Contains("password", StringComparison.InvariantCultureIgnoreCase))
{
var message = string.IsNullOrEmpty("")
? "Password Required"
: "Incorrect Password";
return ForbiddenJsonResult(message);
}
return ErrorJsonResult(ex.Message);
}
}