Question
Issue with two PDF embedded into the same page
I unsuccessfully tried to embed two different PDF files on the same page, using for both the files I used the Adobe API and particularly the code below (consider the same code with two different file names and paths on the same page):
<center>
<div id="adobe-dc-view" style="height: 360px; width: 500px;"></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: "<code>", divId: "adobe-dc-view"});
adobeDCView.previewFile({
content:{location: {url: "https://www.domain.com/filename.pdf"}},
metaData:{fileName: "filename.pdf"}
}, {embedMode: "SIZED_CONTAINER", showDownloadPDF: false, showPrintPDF: false,
showFullScreen: false});
});
</script>
</center>PDF files are not visible and I see an error message.
I have to remove one of the two codes, and in that case, only one PDF is visible.
Any solution?
