Skip to main content
Participant
November 25, 2022
Question

defaultViewMode does not work correctly in mobile browsers

  • November 25, 2022
  • 3 replies
  • 626 views

I have a problem with the defaultViewMode in the modern viewer on mobile.
The page is not rendered correctly with either FIT_PAGE

or FIT_WITH option.

 

Both options work correctly in legacy viewer:

This is my sample:

    <div id="adobe-dc-view"></div>
    <script type="text/javascript">
        var urlParams = new URLSearchParams(window.location.search);
        document.addEventListener("adobe_dc_view_sdk.ready", function () {
            var adobeDCView = new AdobeDC.View({ 
		clientId: "", 
		divId: "adobe-dc-view", 
		locale: "de-DE" });
            adobeDCView.previewFile({
              content: { location: { url: urlParams.get('file') } },
              metaData: { fileName: "test" }
            },{ 
		embedMode: "FULL_WINDOW", 
		defaultViewMode: "FIT_PAGE"
	     });
        });

 

This topic has been closed for replies.

3 replies

Participant
November 25, 2023

Hi, I do have a small fix for your problem...let me know if you are still interested.

 

Thanks

Participant
December 13, 2022

We also have the same problem, please fix this.

Participant
December 5, 2022

We are running into the same problem. Please fix defaultViewMode in mobile browsers. FIT_WIDTH is too narrow. PDFs are already hard enough to read on a smartphone.

Participant
January 26, 2023

I have his problem too. FIT_WIDTH isn't working anymore. The page is too small to read, then if you zoom in to full width it scrolls left and right. 

I'm very upset with this forced update.