vue-pdf-app is a Vue 2 component that integrates Mozilla's PDF.js library to provide a full-featured PDF viewer within web applications. It offers 100% of PDF.js functionality, including zooming, opening, printing, downloading, rotating, text selection, search, password protection, and support for thumbnails, outlines, and annotation layers. The current stable version is 2.1.0, with major updates like v2.0.0 introducing significant changes. While there isn't a strict release cadence, updates are made as needed to introduce new features and address bugs. Key differentiators include an easily localizable and configurable toolbar, custom UI options, built-in TypeScript support, cross-browser compatibility (including IE11 for core functionality, though with some feature limitations), and customizable themes and button icons. The component also supports UMD/Unpkg distribution. It aims to provide a comprehensive and highly customizable PDF viewing experience for Vue 2 applications.
npm install vue-pdf-appVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to integrate the `VuePdfApp` component into a Vue 2 application, loading a PDF from a URL and applying default toolbar icons.
Consult the official CHANGELOG.md for migration instructions and updated API documentation.
Set the `:fileName` prop to a descriptive string, e.g., `<vue-pdf-app :pdf="ArrayBuffer" file-name="my-report.pdf" />`.
If targeting IE11, be aware of feature limitations, particularly regarding visual customizations. Ensure fallbacks or alternative experiences for IE11 users.
Explicitly use the `:pageNumber` prop (e.g., `<vue-pdf-app :page-number="1" />`) to override any stored page number and ensure the desired starting page is displayed.
Ensure `vue-pdf-app` is rendered within a visible and properly positioned DOM element. If on an older version, upgrade to `vue-pdf-app@1.0.1` or higher, as a fix for this was included.
Add `import 'vue-pdf-app/dist/icons/main.css';` to your main application entry file or directly within the `<script>` section of your component, as shown in the quickstart example.
No dependency data recorded yet.