PDF embed component for Vue 2 and Vue 3
The Vue-PDF-Embed is a PDF embed component designed for Vue 3, with compatibility for Vue 2 support available as well. It allows controlled rendering of PDF documents in Vue applications, handling password-protected documents with features like searchable and selectable text layer, annotations, and links. The component requires no peer dependencies and can be used directly in the browser.
To install the Vue-PDF-Embed component, you can use npm with the following command:
npm install vue-pdf-embed
For Vue 2 support, install vue-pdf-embed@1 and refer to the v1 documentation.
The Vue-PDF-Embed component is a useful tool for Vue developers looking to embed PDF documents in their applications. With features like controlled rendering, password protection handling, text layer, and annotation layer, it provides a comprehensive solution for displaying PDF files. The component is easy to install and use, with support for both Vue 2 and Vue 3 environments.