Question
PDF Embed API on Squarespace - not loading
Hello,
I'm struggling to embed a PDF on my Squarespace site. At first, I didn't have the right link to the pdf online and it showed 'script disabled', I then fixed that issue and a scroll-bar appeared, implying that there was now a connection to the PDF - however, it shows 'opening document' and buffering 0% and then fails to load. Any ideas?
Here is my code:
<html>
<head>
<title>Adobe Document Services PDF Embed API Sample</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body style="margin: 0px">
<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: "eaa336d02eac46638d590e66aa1b72a3", divId: "adobe-dc-view"});
adobeDCView.previewFile({
content:{location: {url: "https://onedrive.live.com/embed?resid=25260561A129838D%211989&authkey=!ADfsjcwdLWrsYgw&em=2"}},
metaData:{fileName: "INSIDES-STORYBOOK-GILLIES.pdf"}},
{embedMode: "SIZED_CONTAINER", showDownloadPDF: false, showPrintPDF: false,
showFullScreen: false});
});
</script>
</body>
</html>
Thank you!
