Skip to main content
Zehn
Inspiring
Jun 29, 2022 4:30 PM UTC
Answered

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

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>

Test Screen NameCorrect answer
Legend
Jun 29, 2022 6:36 PM UTC

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
Legend
Jun 29, 2022 6:36 PM UTC

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
Zehn
ZehnAuthor
Inspiring
Jun 29, 2022 6:33 PM UTC

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
Zehn
ZehnAuthor
Inspiring
Jun 29, 2022 4:37 PM UTC

Here is a pic of the domain permission.

Translate