setScale of ui.pdfviewer, Methods Webix Docs

sets a new value for zooming scale and renders the current page with the new scale

void setScale(string|number scale,boolean update);

scale

string|numbera new scale value update
booleanif true, updates the scale value on the related toolbar

Example

webix.ui({
    view:"pdfviewer", 
    id:"pdf", 
    toolbar:"toolbar", 
    url:"binary->files/WebixDocs.pdf"
});
 
$$("pdf").setScale(0.5,true);

Details

For legal values check the scale property.

See also

  • API

  • Back to top

    If you have not checked yet, be sure to visit site of our main product Webix ui component library and page of pdf viewer library product.