ComPDFKit Web SDK
    Preparing search index...

    Function setZoomLevel

    • Sets the zoom level of the active document viewer. The value is kept between the minimum and maximum zoom levels (5% and 1000% by default, see setMinZoomLevel and setMaxZoomLevel). Invalid values are ignored with a warning.

      Parameters

      • zoomLevel: string | number

        A number where 1 is 100%, or a percentage string such as '125%'.

      Returns void

      instance.UI.setZoomLevel(1.5);    // 150%
      instance.UI.setZoomLevel('75%'); // 75%