Overview:
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.
Features:
- Controlled rendering of PDF documents: Render PDF documents in Vue apps with control.
- Handling password-protected documents: Ability to handle password-protected PDF files.
- Includes text layer: Make documents searchable and selectable.
- Includes annotation layer: Add annotations and links to the documents.
- No peer dependencies: No additional configuration or dependencies needed.
- Compatibility with Vue 3: Designed for Vue 3, with support for Vue 2 through a separate package.
Installation:
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.
Summary:
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.