Skip to main content
Participant
Feb 16, 2021 4:10 PM UTC
Question

File Preview Error; Demo works but not the new PDF URL

/* Control the default view mode */
const viewerConfig = {
    /* Allowed possible values are "FIT_PAGE", "FIT_WIDTH" or "" */
    defaultViewMode: "",
};

 

/* Wait for Adobe Document Services PDF Embed API to be ready */

document.addEventListener("adobe_dc_view_sdk.ready", function () {
    /* Initialize the AdobeDC View object */
    var adobeDCView = new AdobeDC.View({
        /* Pass your registered client id */
        clientId: "<YOUR_CLIENT_ID>",
        /* Pass the div id in which PDF should be rendered */
        divId: "adobe-dc-view",
    });

 

[personal information removed by moderator]

    This topic is closed to new replies. Start a new post to keep the conversation going.

    5 replies

    Legend
    Feb 17, 2021 5:28 PM UTC

    Solving this is outside my expertise, but to help you get good answers I suggest you share the actual messages you get. They will be full of important detail. (Redact any personal info tho'!) 

    Translate
    Danny5E92Author
    Participant
    Feb 17, 2021 6:53 PM UTC

    I appreciated your time and comments. 

     

     

    Translate
    Legend
    Feb 17, 2021 1:20 PM UTC

    What IS the issue? "Not working" covers a lot of possibilities.

    Translate
    Danny5E92Author
    Participant
    Feb 17, 2021 4:14 PM UTC

    Sorry, somehow I thought the title tells eough informaiton about the issue. 
    The demo displays "File Preview Error" with the PDF URL attached above. I see a warning message related to CORS. Not sure how I could fix this. 

    Translate
    Danny5E92Author
    Participant
    Feb 16, 2021 5:56 PM UTC

    Anyone can help me to resolve the issue?

    Translate