modules.pdf.
Install pdf.js
Installpdfjs-dist in your app:
>= 5.4.296.
Quick start
Worker setup (recommended)
This is the recommended approach because the worker is configured once for the whole application.Configuration
Object
required
Preloaded pdf.js library instance
string
PDF.js worker source URL (falls back to CDN when omitted)
boolean
default:"false"
Whether to auto-configure pdf.js worker
boolean
default:"false"
Enable text layer rendering (for text selection)
number
default:"2"
Canvas render scale (quality)
Events
pdf:document-ready
Fired when all PDF pages are rendered.
Notes
outputScaleaffects render quality; zooming does not re-render the canvas.- If you need text selection, enable
textLayer: true.

