Skip to main content
Zehn
Inspiring
June 29, 2022
Answered

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

  • June 29, 2022
  • 3 replies
  • 4643 views

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>

Correct answer Test Screen Name

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

3 replies

Test Screen NameCorrect answer
Brainiac
June 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

Zehn
ZehnAuthor
Inspiring
June 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.

Zehn
ZehnAuthor
Inspiring
June 29, 2022

Here is a pic of the domain permission.