vue-pdfjs-express-viewer
v0.0.15
Published
Simple Vue wrapper for [@pdftron/pdfjs-express](https://www.npmjs.com/package/@pdftron/pdfjs-express). Supports Vue 3.
Downloads
8
Readme
Vue PDFJS Express Wrapper
Simple Vue wrapper for @pdftron/pdfjs-express. Supports Vue 3.
Usage
- Install package
npm i vue-pdfjs-express-viewer
- Copy assets in
pdfjs-express
folder to your public/static folder - Instantiate component
import { PdfApp } from "vue-pdfjs-express-viewer";
<pdf-app
:src="file"
:license-key="licenseKey"
asset-path="/pdfjs-express"
></pdf-app>
Props
src: File | Blob
- file sourcelicenseKey: string
- PDFJS Express license key. Can be generated hereassetPath: string
- absolute path to PDFJS Express assets from your public/static folder