'File is corrupted or damaged' when the document header contains svg image

Hello GroupDocs Team,
We faced the issue 'GroupDocs.Viewer.Exceptions.GroupDocsViewerException: ‘Could not load file. File is corrupted or damaged.’ when the doc header contains svg image on calling viewer.View method.
Also, FileType.FromStream method returns .SVG file type instead of .DOCX
Could you please take a look
An example app with a test doc file is in the attachment.
Best Regards,
Ihor Postilnyk
GD_Viewer_Header_Svg.zip (162.9 KB)


Thank you for attaching the sample application with example file. I can reproduce the issue. Please pass a file type as a temporary workaround.

LoadOptions loadOptions = new LoadOptions(FileType.DOCX);
using (Viewer viewer = new Viewer(stream, loadOptions)) 

We’ve located the issue and will try fixing it in GroupDocs.Viewer for .NET 24.6 that is planned to publish this week.

Hello @vladimir.litvinchik
Thanks for the quick response
Looking forward to getting a new version with the fix
Best regards,
Ihor Postilnyk


You’re welcome!


This issue was fixed in GroupDocs.Viewer for .NET 24.6. The package is available at:

Have a nice day!