setScale

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
    Join Our Forum
    We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
    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.