@lanseria/v-pdf
v1.0.8
Published
A Vue 3 Pdf Tools
Downloads
3
Maintainers
Readme
Documentation
https://github.com/Lanseria/v-pdf#readme
Features
- 支持 PDF 预览
- 仅支持 vue 3
- 支持 PDF 文字复制
Installation
npm
Use npm to install.
npm i -D @lanseria/v-pdf
USE
<template>
<v-pdf-viewer
src="https://cdn.filestackcontent.com/wcrjf9qPTCKXV3hMXDwK"
></v-pdf-viewer>
</template>
Contributing
Please see CONTRIBUTING.md.
License
v-pdf is licensed under the MIT license.
Reference
Vue PDF.js Demo
This project demonstrates how a simple PDF viewer could be implemented using Vue and PDF.js. This is not a fully-featured PDF document viewer with sophisticated controls, but could serve as the basis for one.
To learn more, checkout the series of posts describing how this project was implemented.
- Basic page rendering
- Fetching and rendering lazily
- Extracting a data component
- Refactoring to nested abstract components