Skip to content

PDF Viewer Basic example using Vue3, Typescript and the "randolphtellis/vue3-pdfjs" library

License

Notifications You must be signed in to change notification settings

jigth98/PDFViewer-Vue3-Typescript

Repository files navigation

vue3-pdfjs-typescript

After trying quite a lot of options to get a PDF Viewer working with Vue3 and Typescript, here's an starter example for doing just that. It should work out of the box without any modifications.

Has been adapted to work for Typescript (Type definition for module)

It should work correctly out of the box, for Vue3 and has been slightly adapted to work with Typescript by using the following strategy.

  • The following file have been added ./src/vue3-pdfjs.d.ts

  • In ./tsconfig.json the following attribute have been created:

  "files": [
      "./src/vue3-pdfjs.d.ts"
  ]

Installation

Project setup

pnpm install

Compiles and hot-reloads for development

pnpm run serve

Compiles and minifies for production

pnpm run build

Lints and fixes files

pnpm run lint

Customize configuration

See Configuration Reference.

About

PDF Viewer Basic example using Vue3, Typescript and the "randolphtellis/vue3-pdfjs" library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published