PDF Loaded Listener

Community Beginner ,
Jul 01, 2022 Jul 01, 2022

Copy link to clipboard

Copied

Is there a way to listen for a load complete on the embed api?  How do I do this?

TOPICS
How to , PDF Embed API , PDF Services API

Views

40

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

correct answers 1 Correct answer

Community Beginner , Jul 04, 2022 Jul 04, 2022

Hi @Robert22788616336o 
Thanks for using PDF Embed API.  You can use the below code to add the load complete event.

new window.AdobeDC.View({ ... })
  .previewFile({ ... }, { ... })
  .then((adobeViewer) => { // This is called once PDF is done loading. });
Do let us know in case of any concerns.

Likes

Translate

Translate
Community Beginner ,
Jul 04, 2022 Jul 04, 2022

Copy link to clipboard

Copied

LATEST

Hi @Robert22788616336o 
Thanks for using PDF Embed API.  You can use the below code to add the load complete event.

new window.AdobeDC.View({ ... })
  .previewFile({ ... }, { ... })
  .then((adobeViewer) => { // This is called once PDF is done loading. });
Do let us know in case of any concerns.

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