Skip to content

lanseria/v-pdf

Repository files navigation

VPDF

A Vue 3 PDF TOOLS

English | 中文

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.

Index

To learn more, checkout the series of posts describing how this project was implemented.

  1. Basic page rendering
  2. Fetching and rendering lazily
  3. Extracting a data component
  4. Refactoring to nested abstract components

pdfvuer

Index

pdf.js doc

Doc

pdf.js viewer code

web/app.js

set pdf.js viewer locale

issues

vue full feature pdf.js demo

github