Description
vue-pdf-embed is an open-source component for rendering PDF documents inside Vue applications. The current version targets Vue 3, and Vue 2 users can install version 1 of the package. It gives you controlled rendering of pages and can open password-protected files. An optional text layer makes documents searchable and selectable, and an annotation layer shows links and annotations, with interactive form fields when enabled. Props let you set page width or height, plug in a find controller to highlight matches, or replace the link service. The component has no peer dependencies, needs no extra configuration and can also be used directly in the browser. It leaves the viewer interface to you; the same author offers vue-pdfz for a ready-made viewer.…
Highlights
- Renders PDF pages in Vue 3 apps
- Opens password-protected documents
- Searchable, selectable text layer
- Annotation layer with links and form fields
- No peer dependencies; works directly in the browser
Ratings & Reviews
No ratings yet
Be the first to rate vue-pdf-embed.
People also visit

react-native-pdf
A react native PDF view component, support ios and android platform
vue-pdf-embed FAQ
Which Vue versions are supported?
The current package supports Vue 3 only. For Vue 2, install vue-pdf-embed@1 and follow the v1 documentation.
Is this a full PDF viewer?
No. It renders documents and leaves toolbars and navigation UI to you. The author's vue-pdfz project provides a ready-made viewer.
Can users select and search text?
Yes, when the text layer is enabled. A find controller can highlight matches.
Does it handle forms and links?
The annotation layer renders links and annotations, and the forms prop renders interactive form fields.
Do I need extra setup?
No peer dependencies or extra configuration are required, and it can be loaded directly in a browser.
What are the best vue-pdf-embed alternatives?
Popular alternatives to vue-pdf-embed include @tato30/vue-pdf, react-pdf-viewer and v-viewer. See all vue-pdf-embed alternatives



















