Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Vue PDF Viewer Starter Toolkit with Electron and JavaScript

NotificationsYou must be signed in to change notification settings

vue-pdf-viewer/starter-vpv-electron-vue-js

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.

Table of Contents

Usage

Project Setup

  1. Clone the Repository

    git clone https://github.com/vue-pdf-viewer/starter-vpv-electron-vue-js.gitcd starter-vpv-electron-vue-js
  2. Install Dependencies

    Install the required dependencies using your preferred package manager:

    npm install# oryarn install# orpnpm install# orbun install

    Remark: Forpnpm, there is a bit more configuration required which can be foundhere.

Running the Example Project

This project includes a fully functional Electron + Vue 3 example showcasing Vue PDF Viewer:

  1. Start the Development Server

    npm run dev
  2. View the App

    The Electron window will launch automatically. You can also open the app in your browser athttp://localhost:3000.


Using the Vue PDF Viewer Component

Within the Vue 3 app, Vue PDF Viewer is integrated as a Vue component with JavaScript support. To use it:

  1. Import the Component

    Example in a page or component:

    <scriptsetup>  import{VPdfViewer} from '@vue-pdf-viewer/viewer';</script>
  2. Add to Template

    <template>  <VPdfViewer:src="src" /></template>

Examples

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.


Meta


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

Stars

Watchers

Forks

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp