This article provides a step-by-step guide to run the Syncfusion PdfViewer code component in local (TestHarness).
Before getting started with the Syncfusion PdfViewer code component, ensure the following prerequisites are satisfied:
- node.js (>= v18.20.4) (LTS version is recommended)
- System requirements for Syncfusion React components
To run the Syncfusion PdfViewer code component, follow these steps:
-
Ensure that all the prerequisites are met.
-
Open a command prompt (cmd) and navigate to the PdfViewer code component, which is located in the components/pdfviewer/ folder.
-
Utilize the following command to install the dependent packages:
npm install
- Execute the sample with the following command to visualize the PdfViewer code component:
npm start watch
- The PdfViewer code component will be displayed with default properties. Customize the PdfViewer code component properties in the right property pane.
Note
Additionally, explore the API documentation for comprehensive details on the properties, methods, and events of the PdfViewer code component.