Fit Options reference
Constrains a rendered page to a box: fit its width, its height or both, and choose whether it may grow beyond its natural size.
Used by
Import
import type { FitOptions } from '@kingtech/react-pdf-viewer';Properties
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
width | number | — | No | Available width in CSS pixels, including border and padding. |
height | number | — | No | Available height in CSS pixels, including border and padding. |
upscale | boolean | — | No | Scale up to fill the box; otherwise the page only ever shrinks. |
Source
packages/react-pdf-viewer/src/core/geometry.ts
Generated from content/react-pdf-viewer/reference/fit-options.schema.json. Do not edit by hand.