Embedding Adobe's PDF Embed API

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

Did you know that you can simply use Web Embed to show a PDF file?

Sure, but i don’t have the Maker plan. :downcast_face_with_sweat:

1 Like

Not sure if you have an alternative on a free plan. It works with the web embed column, as long as you paste your code in a HTML to URL column and use it with web embed.

Web embed only work on paid plan :wink:

Edit: Missred sorry !

1 Like