Skip to main content
Participant
April 6, 2021
Question

Clear PDF Viewer after file is loaded in DIV

  • April 6, 2021
  • 1 reply
  • 489 views

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 has been closed for replies.

1 reply

Joel Geraci
Community Expert
Community Expert
April 6, 2021

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.