Adobe PDF Embed API > iFrame (won't work unless URL's match)

This commit is contained in:
Thomas Smith 2022-10-23 19:16:59 -04:00
parent 318a492e04
commit b9a5de70b6

View file

@ -24,7 +24,25 @@
</div>
</div>
{{- partial "full-width-cta-split.html" -}}
<section>
<div class="container">
<div class="row">
<div class="col">
<div id="adobe-dc-view" style="width: 100%;"></div>
<script src="https://documentservices.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: "a62ebfbea2724a45bf0f973e895d620f", divId: "adobe-dc-view"});
adobeDCView.previewFile({
content:{location: {url: "https://tea.xyz/tea.white-paper.pdf"}},
metaData:{fileName: "tea.white-paper.pdf"}
}, {embedMode: "IN_LINE"});
});
</script>
</div>
</div>
</div>
</section>
<script>
const versions = [
@ -85,7 +103,7 @@
</style>
<!-- Start PDF
<!-- Start PDF -->
<div class="container pdf-iframe"
style="margin-bottom:100px; overflow:auto; -webkit-overflow-scrolling:touch; z-index:2;">
@ -108,6 +126,6 @@
</div>
</div>
</div>
</div>-->
</div>
{{ end }}