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

Ability to control zoom programmatically

Community Beginner ,
Oct 28, 2020 Oct 28, 2020

We have the need for an entirely customized UI, which would include hiding the zoom and page control toolbar. We are able to jump to page using the `gotoLocation` view API. However we need the ability to set zoom level programatically based on our own controls. `setZoom(currentZoom + .5)` or `setZoom(70%)`. Additionally we would need the ability to reset zoom to fit page and fit width. Basically a way to recreate the built in controls programatically. Is anything like this possible with the current exposed APIs or is it planned?

 

Thanks for the input!

TOPICS
PDF Embed API
448
Translate
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 Employee ,
Jun 11, 2021 Jun 11, 2021
LATEST

Sorry for the late response.

PDF Embed API provides a number of APIs to control the zoom-in/out functionality programmatically. Please have a look at this section, UI customization -> Viewer API -> Zoom APIs, in the official documentation.

Hope this helps.

Translate
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