Skip to main content
Participant
Apr 6, 2021 1:26 PM UTC
Question

Clear PDF Viewer after file is loaded in DIV

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.

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Joel Geraci
Community Expert
Community Expert
Apr 6, 2021 3:32 PM UTC

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.

 

Translate