Copy link to clipboard
Copied
Hi,
I want to clear the DIV or PDF Viewer where PDF Embed will load the file based on other action user takes.
<div id="adobe-dc-view" class="pdfcontainer"></div>
How can I achieve this? Please suggest.
Copy link to clipboard
Copied
You can clear the targeted Element based on user behavior by listening to any number of events, for example, you can replace the viewer with a "Thank you" message when a user downloads the PDF by listening for the
AdobeDC.View.Enum.PDFAnalyticsEvents.DOCUMENT_DOWNLOAD
event.