vue-pdf-embed: A Robust PDF Embed Component for Vue 2 and Vue 3

This repository profile is provided by osrepos.com, an open source repository discovery platform.

vue-pdf-embed: A Robust PDF Embed Component for Vue 2 and Vue 3

Summary

vue-pdf-embed is a powerful and easy-to-use PDF embed component designed for Vue applications. It supports both Vue 2 and Vue 3, offering features like password-protected document handling, text and annotation layers, and no external peer dependencies. This component simplifies the integration of PDF viewing directly into your web projects.

Repository Information

Analyzed by OSRepos on June 20, 2026

Topics

Click on any tag to explore related repositories

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Introduction

vue-pdf-embed is a versatile PDF embed component designed for Vue.js applications. It allows developers to easily display PDF documents directly within their Vue 2 and Vue 3 projects, providing a seamless user experience. This component stands out for its robust feature set, including controlled rendering of PDF documents, handling of password-protected files, and support for interactive text and annotation layers, making documents searchable and selectable. Built with TypeScript, vue-pdf-embed offers a reliable and type-safe solution for integrating PDF viewing capabilities.

Installation

Getting started with vue-pdf-embed is straightforward. You can install the package using npm or yarn, or include it directly via a script tag in your HTML.

npm install vue-pdf-embed
yarn add vue-pdf-embed

For direct browser usage, include the script:

<script src="https://unpkg.com/vue-pdf-embed"></script>

Examples

Integrating vue-pdf-embed into your Vue application is simple. Here is a basic usage example:

<script setup>
import VuePdfEmbed from 'vue-pdf-embed'

// Optional styles
import 'vue-pdf-embed/dist/styles/annotationLayer.css'
import 'vue-pdf-embed/dist/styles/textLayer.css'

// Either URL, Base64, binary, or document proxy
const pdfSource = '<PDF_URL>'
</script>

<template>
  <VuePdfEmbed annotation-layer text-layer :source="pdfSource" />
</template>

For more advanced scenarios and live demonstrations, explore the official JSFiddle examples:

Why Use vue-pdf-embed?

vue-pdf-embed simplifies the complex task of embedding PDF documents into Vue applications. Its key advantages include:

  • Comprehensive Features: It supports essential functionalities like text selection, annotations, and password protection right out of the box, enhancing user interaction with PDF content.
  • Ease of Use: With no complex peer dependencies or additional configuration required, setup is quick and hassle-free.
  • Vue 2 and Vue 3 Compatibility: The component is designed to work seamlessly across both major versions of Vue, ensuring broad applicability.
  • Controlled Rendering: Developers have fine-grained control over document rendering, including specific pages, rotation, and scaling.
  • Public Methods: It provides convenient public methods for downloading and printing documents directly from the component instance.

Links

Related repositories

Similar repositories that may be relevant next.

pdfminer.six: Advanced PDF Parsing and Data Extraction in Python

pdfminer.six: Advanced PDF Parsing and Data Extraction in Python

August 30, 2026

pdfminer.six is a powerful, community-maintained Python library designed for extracting and analyzing text data from PDF documents. It allows users to retrieve text directly from PDF source code, including details like location, font, and color. This versatile tool also supports advanced features such as CJK languages, image extraction, and various PDF specifications.

pythonpdfparser
PDF Craft: Convert Scanned PDF Books to Markdown and EPUB

PDF Craft: Convert Scanned PDF Books to Markdown and EPUB

March 9, 2026

PDF Craft is a Python library designed to convert PDF files, especially scanned books, into various formats like Markdown and EPUB. Leveraging DeepSeek OCR, it accurately extracts text, tables, and formulas while preserving document structure. The project offers a fast, local conversion process, making it ideal for digitizing complex documents.

deepseek-ocrdocumentocr
pdfplumber: Extracting Data from PDFs with Ease and Precision

pdfplumber: Extracting Data from PDFs with Ease and Precision

January 24, 2026

pdfplumber is a powerful Python library designed to extract detailed information from PDFs, including characters, rectangles, and lines. It excels at easily extracting text and tables, making it an invaluable tool for data analysis and automation. Built on pdfminer.six, it provides robust PDF parsing capabilities.

pdfpdf-parsingtable-extraction
text-extract-api: Advanced Document Extraction, OCR, and PII Removal with LLMs

text-extract-api: Advanced Document Extraction, OCR, and PII Removal with LLMs

October 12, 2025

text-extract-api is a powerful API designed for extracting and parsing text from various document formats, including PDF, Word, and PPTX. It utilizes modern OCRs and Ollama-supported LLMs for highly accurate text extraction, PII removal, and conversion to structured JSON or Markdown, all while maintaining data privacy through its self-hosted architecture.

anonymizationapidocument processing

Source repository

Open the original repository on GitHub.

19 counted GitHub visits

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️