Skip to main content
Participant
August 23, 2023
Question

PDF Embed API on Squarespace - not loading

  • August 23, 2023
  • 0 replies
  • 303 views

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 type="text/javascript">
document.addEventListener("adobe_dc_view_sdk.ready", function(){ 
var adobeDCView = new AdobeDC.View({clientId: "eaa336d02eac46638d590e66aa1b72a3", divId: "adobe-dc-view"});
adobeDCView.previewFile({
metaData:{fileName: "INSIDES-STORYBOOK-GILLIES.pdf"}},
   {embedMode: "SIZED_CONTAINER", showDownloadPDF: false, showPrintPDF: false, 
showFullScreen: false});
});
</script>
</body>
 
</html>
 
Thank you!
    This topic has been closed for replies.