Copy link to clipboard
Copied
I've read through 100 posts and spent many hours trying to get this to work! Here's the site that we want the embeded PDF to display: https://sensysnetworks.com/detectioncost-1
Nothing displays. No errors. Nada. Please someone come to the rescue!
Here's our code:
<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: "dda0d189353543499c94715436298776", divId: "adobe-dc-view"});
adobeDCView.previewFile({
content:{location: {URL: "https://sensysnetworks.com/images/news/A_Deeper_Look_at_the_True_Cost_of_Traffic_Detection-IMSA_Jour..."}},
metaData:{fileName: "A_Deeper_Look_at_the_True_Cost_of_Traffic_Detection-IMSA_Journal_May-June2021.pdf"}
}, {embedMode: "IN_LINE"});
});
</script>
Hi @Bill5E5D Thanks for using PDF Embed API. There is a small typo in your snippet while providing the URL of the file. It should be 'url' instead of 'URL' in content's location. I hope it will work after that.
Copy link to clipboard
Copied
Hi @Bill5E5D Thanks for using PDF Embed API. There is a small typo in your snippet while providing the URL of the file. It should be 'url' instead of 'URL' in content's location. I hope it will work after that.
Copy link to clipboard
Copied
That seems to have done the trick...