• Instructs the given handler to zoom and pan its content so that it would fit into the given width and height (which are pixel values). This is used when printing if we wish to fix to a specific page size like A4.

    Parameters

    • handlerId: string

      The ID of the handler to scale.

    • wh: PageBounds

      Width and height (in pixels) to zoom to

    • margins: Margins = ...

      Optional margins in [top,right,bottom,left] format. In this method, these values are expressed as pixel values.

    Returns number