- Notifications
You must be signed in to change notification settings - Fork0
Vue PDF Viewer Starter Toolkit with Electron and JavaScript
vue-pdf-viewer/starter-vpv-electron-vue-js
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Welcome to the Vue PDF Viewer starter toolkit! This repository demonstrates how to integrate Vue PDF Viewer within an Electron application built on Vue 3 using JavaScript.
Clone the Repository
git clone https://github.com/vue-pdf-viewer/starter-vpv-electron-vue-js.gitcd starter-vpv-electron-vue-jsInstall Dependencies
Install the required dependencies using your preferred package manager:
npm install# oryarn install# orpnpm install# orbun install
Remark: For
pnpm, there is a bit more configuration required which can be foundhere.
This project includes a fully functional Electron + Vue 3 example showcasing Vue PDF Viewer:
Start the Development Server
npm run dev
View the App
The Electron window will launch automatically. You can also open the app in your browser at
http://localhost:3000.
Within the Vue 3 app, Vue PDF Viewer is integrated as a Vue component with JavaScript support. To use it:
Import the Component
Example in a page or component:
<scriptsetup> import{VPdfViewer} from '@vue-pdf-viewer/viewer';</script>
Add to Template
<template> <VPdfViewer:src="src" /></template>
For more examples, please refer to thesrc/App.vue file in this repository:
- Default Toolbar
- Without Toolbar
- Mobile View
Remark: If you would like more examples, feel free to open an issue.
For more configurations, please check thedocumentation site.
Thank you for using Vue PDF Viewer with Electron and Vue 3! If you have any questions or run into issues, please open an issue in this repository. Happy coding!
About
Vue PDF Viewer Starter Toolkit with Electron and JavaScript
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Contributors3
Uh oh!
There was an error while loading.Please reload this page.