Copy link to clipboard
Copied
I copied some script and added my client ID, PDF file location, and name. It almost works but gets an error message that says "File Preview Error" - I found some people with the same issue and tried their fix which was to remove https, or remove https://drlesleyphillips.com. ( also noticed they didnt have <> around their client ID so I tried removing that. None of these solutions worked. I believe there is something wrong with the code but I just do not know what it is?
<div id="adobe-dc-view"></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: "<e3826d972d5e48c6a8b1d598039f1cda>", divId: "adobe-dc-view"});
adobeDCView.previewFile(
{content: {location: {url: "https://drlesleyphillips.com/wp-content/uploads/Dr-Lesleys-Chakras-and-Intuition-Map.pdf"}},
metaData: {fileName: "Dr Lesleys Chakras and Intuition Map"} }); }); </script>
Have something to add?