ComPDFKit Web SDK
    Preparing search index...

    Function setZoomStepFactors

    • Sets the step table used by the zoom in / zoom out buttons. step and startZoom are percentages (a number, or a string such as '25' / '25%'). At least one item must have startZoom 0 and every step must be positive; otherwise the call is ignored with a warning. Once set, the buttons add or subtract the step of the range the current zoom falls in, instead of multiplying / dividing by 1.1.

      Parameters

      Returns void

      instance.UI.setZoomStepFactors([
      { step: 10, startZoom: 0 },
      { step: 50, startZoom: 200 },
      ]);