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

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

251

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 ,
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?

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