React PDF viewer

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';


(The sample code)

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