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

New Here ,
Jun 21, 2021 Jun 21, 2021

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>

TOPICS
PDF Embed API

Views

123

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Jun 21, 2021 Jun 21, 2021

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.

Likes

Translate

Translate
Adobe Employee ,
Jun 21, 2021 Jun 21, 2021

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.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 21, 2021 Jun 21, 2021

Copy link to clipboard

Copied

LATEST

That seems to have done the trick...

2021-06-21_15-01-23.png

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines