React PDF viewer
v1.6.0

Example: Single page view

By default, the viewer will calculate the initial zoom level based on the dimesion of page and the container width. So that, the document will fit best within the container.

It's also possible to set the default zoom level via the defaultScale option. In the following code, it is set as SpecialZoomLevel.PageFit so the user will see a single page in the container:

import Viewer, { SpecialZoomLevel } from '@phuocng/react-pdf-viewer';

<Viewer
    fileUrl='/path/to/document.pdf'
    defaultScale={SpecialZoomLevel.PageFit}
/>

(The sample code)

/ 8
78%
bbcParameters for Opening PDF FilesAdobe® Acrobat® SDK April 2007Version 8.1