• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

271

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
Community Expert ,
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"});

Votes

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?

Votes

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?

Votes

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
Community Expert ,
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});
    });

Votes

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
Community Expert ,
Jun 01, 2021 Jun 01, 2021

Copy link to clipboard

Copied

LATEST

Set a height on the adobe-dc-view div

Votes

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
Resources