Skip to main content
Participant
Jun 21, 2021 9:32 PM UTC
Answered

Unable to get even 1 PDF to display on our site. Agh!

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_Journal_May-June2021.pdf"}},
metaData:{fileName: "A_Deeper_Look_at_the_True_Cost_of_Traffic_Detection-IMSA_Journal_May-June2021.pdf"}
}, {embedMode: "IN_LINE"});

});
</script>

This topic is closed to new replies. Start a new post to keep the conversation going.
Shubhanshu DixitCorrect answer
Adobe Employee
Jun 21, 2021 9:45 PM UTC

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.

2 replies

Shubhanshu DixitCorrect answer
Adobe Employee
Jun 21, 2021 9:45 PM UTC

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.

Translate
Joel Geraci
Community Expert
Community Expert
Jun 21, 2021 10:03 PM UTC

That seems to have done the trick...

Translate