setScale

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

void setScale(string|number scale,boolean update);
scalestring|numbera new scale value
updatebooleanif 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
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.