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

File Preview error

Community Beginner ,
Nov 16, 2020 Nov 16, 2020

Copy link to clipboard

Copied

The demo works fine. But when I try to use PDF Embed API to place my own PDF, I get a File Preview error. I see other posts on this forum with the same problem but can't find an answer. I appreciate any feedback. Thanks.

 

<!DOCTYPE html>
<html>
<head>
<title>Adobe Document Services PDF Embed API Sample</title>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1"/>
</head>
<body style="margin: 0px">
<div id="adobe-dc-view"></div>
<script src="https://documentcloud.adobe.com/view-sdk/main.js"></script>
<script type="text/javascript">
document.addEventListener("adobe_dc_view_sdk.ready", function()
{
var adobeDCView = new AdobeDC.View({clientId: "ba22b551b7624c22b6dc4f87a7ab2701", divId: "adobe-dc-view"});
adobeDCView.previewFile(
{
content: {location: {url:"https://bearessentialnews.com/images/StemRocksAdSep20.pdf"}},
metaData: {fileName: "StemRocksAdSep20.pdf"}
});
});
</script>
</body>
</html>

Views

1.3K

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

correct answers 1 Correct answer

Adobe Employee , Nov 17, 2020 Nov 17, 2020

FYI, this got solved by recreating the credentials directly at https://console.adobe.io/projects

This thread can be closed.

Votes

Translate

Translate
Adobe Employee ,
Nov 17, 2020 Nov 17, 2020

Copy link to clipboard

Copied

Hi, thanks for using PDF Embed API. 

Would it be possible to share the link to the hosted website where you see the issue?

Also, do you see any error in the browser console panel? If yes, please share a screenshot of the error message so we can debug.

Thanks.

 

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 Beginner ,
Nov 17, 2020 Nov 17, 2020

Copy link to clipboard

Copied

Hi Sumona, thank you so much for helping. Here is the link: 

https://bearessentialnews.com/images/index.html

 

When I set up the PDF Embed API, I tried to make sure this domain is allowed.

Screen Shot 2020-11-17 at 7.44.53 AM.png

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
Adobe Employee ,
Nov 17, 2020 Nov 17, 2020

Copy link to clipboard

Copied

LATEST

FYI, this got solved by recreating the credentials directly at https://console.adobe.io/projects

This thread can be closed.

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