Cannot perform DCAPI command if DCAPI is disabled
Just trying to get started with the basics:
I copied the 'Copy it Run it' code into our application.
var adobeDCView = new AdobeDC.View({ clientId: "OUR CLIENT ID", divId: "adobe-dc-view" });
adobeDCView.previewFile({
content: {location: {url: "https://documentcloud.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf"}},
metaData: {fileName: "Bodea Brochure.pdf"}
});
When it runs the spinner shows 'Opening Document 100%' but it throws an error a Promise rejection 'Cannot perform DCAPI command if DCAPI is disabled'.
If I click through all the Promise rejections the pdf does eventually display, though any mouse move over the pdf generates more Promise rejections.
I must be missing something obvious???
I also tried using our own pdf with the url pointing at our AWS location, the spinner shows 'Opening Document 0%' then the promise rejection, the pdf never loads
