Some test text!
Core / Guides / Electron
Welcome to Apryse.
This guide will show you how to integrate WebViewer Document Viewer & Editor into an Electron desktop application.
You can watch a step-by-step video to help you get started.
You can also download a ready-to-go sample on GitHub.
Prior to starting, you should have already installed Node and npm.
git clone https://github.com/PDFTron/webviewer-electron-sample.git
Enter the directory and run
cd webviewer-electron-sample npm install
This will automatically download and extract the Apryse WebViewer Package.
To run the sample, make sure you are in the
webviewer-electron-sample directory and execute
You should see the application start up. It will load the WebViewer and display the PDF sample in
If you run into issues with installing and/or running the application, please return and ensure you have the prerequisites installed.
To call more WebViewer APIs, open
/src/App.js in your favorite text editor and add the API calls to the callback for the WebViewer instantiation:
For example, if you want to change the theme of the WebViewer to dark mode, you would add the following:
npm start again and the theme of the viewer will change:
More information about fixing the
Network Failure issue on WebViewer.
Get the answers you need: Chat with us