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>
