Free Support Forum - groupdocs.com

Issues with zooming and rotating of e-mails in Groupdocs viewer

When attempting to rotate an image 90 degrees of an .msg document, document viewer seems to not do anything to the document without, as you start to scroll the document the following errors can be seen in Developer Tools in Google Chrome.

GroupdocsViewer.all.js:3067 Uncaught TypeError: Cannot read property 'y' of undefined
at docViewerViewModel.ScrollDocView (GroupdocsViewer.all.js:3067)
at docViewerViewModel.scroll (eval at parseBindingsString (knockout-3.4.0.js:68), :3:97)
at HTMLDivElement. (knockout-3.4.0.js:89)
at HTMLDivElement.dispatch (jquery-3.1.0.min.js:3)
at HTMLDivElement.q.handle (jquery-3.1.0.min.js:3)

The zoom in and out buttons also don't work on this document, you can only change the current zoom with the zoom level drop down, and when you do this, the image zoom changes along with the document rotated as it should have originally and these errors no longer occur.

Also related when zooming extremely (5-15%) out of PDF and word documents, the loader can be seen behind the document and does not disappear even after all pages of the specific document have loaded.

We found this issue in version 16.10.0 of GroupDocs viewer using the based off the ASP.NET_MVC_Front_End version of GroupDocs on your GitHub profile.

Hi Rreeves,


Thanks for using GroupDocs.Viewer for .NET.

Can you please provide us the problematic document/file for which you are facing the issue? This will help us to investigate your scenario at our end. We shall be looking forward to your response.

Warm Regards

Hi Usman,


Please find attached the issue file to this response.

Hi Rreeves,


Thanks for providing the required document.

We are unable to reproduce both of your reported issues at our end. We tested to view your provided .msg file in different browsers and rotation is working without any issue (see this screenshot). Also, zooming out PDF and Word documents to 5-15% is working smoothly, The loader disappears after the document is loaded in the viewer (see this screenshot). There might be some issue with the browser you are using. You can also clear browser’s cache and check to load the document again. Furthermore, we strongly recommend you to upgrade the API to the latest version, GroupDocs.Viewer for .NET 17.1.0.

In case of any confusion, please feel free to write us again.

Warm Regards

Hi usman.aziz,


I can clarify that we are using the javascript files GroupdocsViewer.all.js and InstallableViewer.js from the latest commit of the example code in https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-.NET/commit/6c97286cf5e345cf63cdb5b377598bb9d5e663ef .

With version 16.12.0 (from NuGet: https://www.nuget.org/packages/groupdocs-viewer-dotnet/16.12.0) the issue occurs - rotation of an email (and sometimes images) when rendering as HTML does not work until you zoom.

This works fine in version 17.1.0 (from NuGet again https://www.nuget.org/packages/groupdocs-viewer-dotnet/17.1.0).

However, this version does not correctly render a particular PDF file (the A4464.C490.dorset_fire_brigade_thatch.pdf we sent you previously for a rendering issue).

Since the rotation issue in the email is fixed in version 17.1.0 I’ll start a new thread for the PDF rendering issue.

Thanks,
Darryl

Hi Darryl,


Thanks for coming back.

Its good to know that your issue is resolved with the latest version of GroupDocs.Viewer for .NET. We shall investigate your mentioned issue with the PDF document and share the results with you in the relevant forum thread.

Warm Regards