Error Please help?

New Here ,
Jun 01, 2021 Jun 01, 2021

Copy link to clipboard

Copied

I think I've done everthing correclty, I'm geting this:

File preview not available

Here's the code used--see screenshot


Views

49

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jun 01, 2021 Jun 01, 2021

Copy link to clipboard

Copied

Remove the less than and greater than signs from the clientID so the line is just...

 

var adobeDCView = new AdobeDC.View({clientId: "5a889a5328274e5094cb9eda3d482917", divId: "adobe-dc-view"});

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 01, 2021 Jun 01, 2021

Copy link to clipboard

Copied

That worked! But how do I opene it up iu/longer?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 01, 2021 Jun 01, 2021

Copy link to clipboard

Copied

And disable printing?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jun 01, 2021 Jun 01, 2021

Copy link to clipboard

Copied

Like this...

 

    document.addEventListener("adobe_dc_view_sdk.ready", function()
    {
        var adobeDCView = new AdobeDC.View({clientId: "5a889a5328274e5094cb9eda3d482917", divId: "adobe-dc-view"});
        adobeDCView.previewFile(
       {
          content:   {location: {url:"https://poetrypost.com/wp-content/uploads/2021/06/California-Poet-Laureate-Roster_05.19.21.pdf"}},
          metaData: {fileName: "California-Poet-Laureate-Roster_05.19.21.pdf"}
       }, {showDownloadPDF: false, showPrintPDF: false});
    });

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jun 01, 2021 Jun 01, 2021

Copy link to clipboard

Copied

LATEST

Set a height on the adobe-dc-view div

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines