Hi Gliders,
I’m trying to embed the following API in Glide to show my PDF but it’s not working.
I have tried it in a RichText Box and in a Template column:
<div id="adobe-dc-view" style="height: 360px; width: 500px;"></div>
<script src="https://acrobatservices.adobe.com/view-sdk/viewer.js"></script>
<script type="text/javascript">
document.addEventListener("adobe_dc_view_sdk.ready", function(){
var adobeDCView = new AdobeDC.View({clientId: "22355f195dc64f348b7955e37c24d789", divId: "adobe-dc-view"});
adobeDCView.previewFile({
content:{ location:
{ url: "https://acrobatservices.adobe.com/view-sdk-demo/PDFs/Bodea%20Brochure.pdf"}},
metaData:{fileName: "Bodea Brochure.pdf"}
}, {embedMode: "SIZED_CONTAINER"});
});
</script>
Thanks
Alex