Clear PDF Viewer after file is loaded in DIV

Community Beginner ,
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

28

Likes

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
Adobe Community Professional ,
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.

 

Likes

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