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

Ability to control zoom programmatically

Community Beginner ,
Oct 28, 2020 Oct 28, 2020

Copy link to clipboard

Copied

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

Views

292

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 Employee ,
Jun 11, 2021 Jun 11, 2021

Copy link to clipboard

Copied

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.

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