pdfrx_web
    Preparing search index...

    Function calcTransformForRect

    • Fit the given document rect into the view.

      Parameters

      • rect: Rect

        The rectangle to process.

      • viewSize: Size

        The viewport size.

      • options: { margin?: number; zoomMax?: number } = {}

        Options that customize the operation.

      Returns ViewTransform

      The resulting ViewTransform.