Groupdocs Viewer 8.0.7 - Wrong page no displayed initially during server delays to return pages

@vladimir.litvinchik - It was the media middleware issue which was intercepting, so that’s now resolved. Other mentioned 4 issues are now sorted. Thank you.

Problem #1
With 8.1.2 - Letter size pdf pages are not fully visible on 100% default zoom level (need to scroll). Also There is no intermediate zoom level between 50 and 100 that we can explicitly set.
Previous 100 percent on 8.0.7 was properly resizing the page (no need to scroll)

Note - We load the viewer within iframe as below within cshtml file.

<iframe src="/viewer?file=sample_letter_size_5pages.pdf"
        name="targetframe"
        allowTransparency="true"
        scrolling="no"
        frameborder="0"
        style="height:1200px;width:100%;"
        id="groupdocs_viewer_frame_1">
</iframe>

Viewer_8.0.7_LetterSizePage_FullyVisibleOn100PercentZoom.png (29.6 KB)

sample_letter_size_5pages.pdf (3.7 KB)

Viewer_8.2.1_LetterSizePage_NotFullyVisibleOn100PercentZoom.png (36.4 KB)

I have attached screenshots and sample pdf for reference

Problem #2 -
Issue #1 still exists when ran on azure app service, as it still uses azure’s hostname (suffixed with azurewebsites.net rather than what user has entered in url bar.).

I have added workaround suggested on following again and change in buildUrl method as below so it takes relative irrespective of the domain and what domain user typed in web browser.

            string basePath = $"/{apiPath.TrimStart('/').TrimEnd('/')}/{apiMethodName.TrimStart('/')}";
            var queryString = BuildQueryString(values);

            return string.IsNullOrWhiteSpace(queryString) ? basePath : $"{basePath}?{queryString}";

Could you please check the issue again and fix?

@sachinerande

Thank you for sharing this issues. I’ll double-check path issue first and update you.

@vladimir.litvinchik Base path issue is not a blocker for the moment, as it is working fine with the change i did on workaround.
Could you please fix the zoom problem ? User has to always change zoom level on initial document level. I can set it to 50% but they again have to increase that (as there is no intermediate zoom level available between 50 and 100 to set)
Thanks.

@sachinerande

I’m sorry for the delayed response. I’m planning to work on this issues next week and can add more options to the zoom select. What values do you need to be available?

@vladimir.litvinchik
I think if you can make zoom class configurable would be good, or just add few more like interval of 5 from 50 percent to 100 percent. I can toggle best fit.

But I think best is if you can fix the root problem. (initial zoom level is increased on this new release)
70 % on 8.0.7 ~= 100 % on 8.1.2 (approximately)
So not all page is visible, may be css around those pages is changed.
Thanks.

@sachinerande

I’m sorry for the delayed response. Unfortunately, I haven’t got a chance to handle this issue. As soon as I get update I’ll let you know

Thanks @vladimir.litvinchik for update