Hi @vsevolod.orefin
We are currently encountering an issue with GroupDocs Viewer (version 24.12) when attempting to retrieve dimensions from an EML file. Upon execution, we receive the following error message:
com.groupdocs.viewer.internal.c.a.w.cR: The document appears to be corrupted and cannot be loaded.
We are using the following code snippet to extract the dimensions:
try (Viewer viewer = new Viewer(inputFilePath)) {
ViewInfoOptions viewInfoOptions = ViewInfoOptions.forPdfView();
ViewInfo viewInfo = viewer.getViewInfo(viewInfoOptions);
convetOptions.setPageWidth(viewInfo.getPages().get(0).getWidth());
if (FilenameUtils.getExtension(inputFilePath).equals("eml")) {
convetOptions.setPageHeight((int) (viewInfo.getPages().get(0).getHeight() * (viewInfo.getPages().size() * 0.6)));
} else {
convetOptions.setPageHeight(viewInfo.getPages().get(0).getHeight() * viewInfo.getPages().size());
}
}
The EML file can be accessed here:
EML File – Google Drive
Could you please advise if we are missing anything or suggest a solution to resolve this error?
Thank You!
Vaibhav
This Topic is created by evgen.efimov using Email to Topic tool.
Hello @Vaibhavj22 ,
Thank you for contacting us.
We were indeed able to reproduce the same issue using GroupDocs.Viewer for Java 24.12 on our side.
We have also confirmed that the issue persists in the latest version 25.6.
It has been logged in our internal tracking system under ID VIEWERJAVA-3951, and we’ve linked it to this forum thread.
Unfortunately, we currently don’t have a temporary workaround for this issue, but please rest assured — we’ll keep you informed as soon as we have any further updates.
Hi @evgen.efimov
Is there any updates on this issue?
Thanks
Vaibhav
Hello @Vaibhavj22 ,
Unfortunately, we have not yet managed to fix this issue. We are continuing to work on it and will try to include the fix in the next release of GroupDocs.Viewer for Java, which is planned for early September.
1 Like
Dear @Vaibhavj22 ,
We wanted to inform you that the issue you reported regarding .eml
files — where attempting to view them resulted in the error:
com.groupdocs.viewer.internal.c.a.w.CR: The document appears to be corrupted and cannot be loaded
has been resolved in the latest release GroupDocs.Viewer for Java 25.9.
Please update to version 25.9 to benefit from this fix and enjoy improved .eml
rendering support. You can update via Maven as follows:
<dependency>
<groupId>com.groupdocs</groupId>
<artifactId>groupdocs-viewer</artifactId>
<version>25.9</version>
</dependency>
For more details, see the 25.9 release notes.
Thank you for your patience and for using GroupDocs.
Best regards,
The GroupDocs Team