API for manually destroying the viewer instance

New Here ,
Sep 09, 2020 Sep 09, 2020

Copy link to clipboard

Copied

We are implementing the embed API in a vue.js application and a facing a problem when using the "Lightbox" mode. We programmatically navigate away from the page showing the viewer. The viewer doesn't realize that and doesn't clean up (in particular: doesn't remove the "ViewSDK_hideOverflow" class from the body). Therefore users aren't able to scroll anymore after opening the pdf viewer.

This is a major issue for us. We are currently implementing a workaround, but would really appreciate it if it were possible to just call ".destroy()" or a similar method so the viewer does the same cleanup which happens when the user manually leaves the viewer.

TOPICS
PDF Embed API

Views

59

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 ,
Sep 09, 2020 Sep 09, 2020

Copy link to clipboard

Copied

LATEST

I've just been setting the object to null and that seems to do the trick. Is that not working for you?

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