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