Copy link to clipboard
Copied
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>
1 Correct answer
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
Copy link to clipboard
Copied
Here is a pic of the domain permission.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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

