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

Embed PDF API: not authorized to use the provided PDF Embed API Client ID

Community Beginner ,
Jun 29, 2022 Jun 29, 2022

I know this has been asked several times, but I was still unable to find a solution to my problem when trying to use the PDF Embed API.

 

I generated the code using the Adobe demo, and replaced all relevant info and file location (yes, I removed the <> carrots).

 

I'm attaching the code and info below.

 

Thank you to anyone that can help with this.

 

<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: "fbb5f2505a7b4d2bafc5906ba90f05a2", divId: "adobe-dc-view"});
adobeDCView.previewFile({
content:{location: {url: "https://joshuatawney.com/TAWNEY_SELECTED_WORKS.pdf"}},
metaData:{fileName: "TAWNEY_SELECTED_WORKS.pdf"}
}, {embedMode: "LIGHT_BOX"});
});
</script>

TOPICS
Acrobat SDK and JavaScript , Windows
4.2K
Translate
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

LEGEND , Jun 29, 2022 Jun 29, 2022

The PDF Embed API isn't part of Acrobat and isn't covered by the Acrobat SDK. You aren't likely to find any experts on it here, but there are in the Document Service API forum Document Services APIs - Adobe Support Community

Translate
Community Beginner ,
Jun 29, 2022 Jun 29, 2022

Here is a pic of the domain permission.

Translate
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 ,
Jun 29, 2022 Jun 29, 2022

I resolved my problem by deleting my existing credentials key in Adobe Developer's Console and creating a new one without the WWW before the domain name. So the associated domain with the Key is "domain.com" vs. "www.domain.com."

 

I hope this helps anyone who is having a similar issue.

Translate
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
LEGEND ,
Jun 29, 2022 Jun 29, 2022
LATEST

The PDF Embed API isn't part of Acrobat and isn't covered by the Acrobat SDK. You aren't likely to find any experts on it here, but there are in the Document Service API forum Document Services APIs - Adobe Support Community

Translate
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