ComPDFKit Web SDK
    Preparing search index...

    Function getZoomLevel

    • Gets the zoom level of the active document viewer.

      Returns number

      The zoom level, where 1 is 100%.

      const percent = Math.round(instance.UI.getZoomLevel() * 100);