• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Clear PDF Viewer after file is loaded in DIV

New Here ,
Apr 06, 2021 Apr 06, 2021

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.

Krunal
TOPICS
PDF Embed API

Views

242

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 06, 2021 Apr 06, 2021

Copy link to clipboard

Copied

LATEST

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.

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources