PDF Embed API and fit width / height

Community Beginner ,
Mar 25, 2022 Mar 25, 2022

Copy link to clipboard

Copied

 

I am trying to set "Fit width" and "Fit height" without using the Page Control overlay, i.e. have my own buttons and then use a API calls.

 

I cannot see what the buttons in the panel trigger, and I cannot find anything about this in the documentation -- so I am wondering if this is possible at all.

 

I've tried using apis.getZoomAPIs().setZoomLevel(some_calculated_zoom), but I've yet to achieve the same result as the Page Control buttons do

 

Anyone know if there is some API call I can use, or if there is some kind of workaround?

 

Views

83

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
no replies

Have something to add?

Join the conversation
Resources