Copy link to clipboard
Copied
I am finding that after the `adobeDCView.previewFile` command is issued, it takes a while even before the gray loading icon appears. Is there any event available to capture the start of the loading? Reason being, we can superlay with our own loader while the embed code works. Thanks
Copy link to clipboard
Copied
APP_RENDERING_DONE fires when the PDF is rendered completely and the first page is displayed but you might also want to listen for APP_RENDERING_FAILED which will tell you if the PDF fails to render because of an unexpected error.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Thanks Joel but I cannot seem to find its mention in the documentation (https://www.adobe.io/apis/documentcloud/dcsdk/docs.html). Or have I missed it? I see no examples of how the event gets triggered. It is via some catch block as part of the PreviewFile command?
Copy link to clipboard
Copied
It's listed under "Basic Events" and there's an example of how to register the listener there too. You can register it immediately after creating the view Object.
https://www.adobe.com/devnet-docs/dcsdk_io/viewSDK/howtodata.html#basic-events
Copy link to clipboard
Copied