Skip to content
React PDF Viewer

Search

FitOptions 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

NameTypeDefaultRequiredDescription
widthnumber—NoAvailable width in CSS pixels, including border and padding.
heightnumber—NoAvailable height in CSS pixels, including border and padding.
upscaleboolean—NoScale 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.