Skip to main content
Participant
Nov 25, 2022 11:20 AM UTC
Question

defaultViewMode does not work correctly in mobile browsers

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 is closed to new replies. Start a new post to keep the conversation going.

4 replies

Participant
Nov 25, 2023 9:02 PM UTC

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

 

Thanks

Translate
Participant
Dec 13, 2022 4:29 AM UTC

We also have the same problem, please fix this.

Translate
Participant
Dec 5, 2022 11:20 PM UTC

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.

Translate
Participant
Jan 26, 2023 7:09 AM UTC

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.

Translate