Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vuetify-pdfjs

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuetify-pdfjs

Nice but simple PDF viewer

  • 1.2.6
  • npm
  • Socket score

Version published
Weekly downloads
92
increased by48.39%
Maintainers
1
Weekly downloads
 
Created
Source

vuetify-pdfjs

nice but Simple PDF viewer. Needs vuetify@2 and @mdi/js.

This project demonstrates how a simple PDF viewer could be implemented using Vue, Vuetify and PDF.js. This is not a fully-featured PDF document viewer with sophisticated controls, but could serve as the basis for one.

Versions

1.2.3 : Blurred pages corrected. 1.2.4 : Correct paginator color. 1.2.5 : Update vue version to 2.7.14.

Setup

To install the plugin inside your project :

$ npm install vuetify-pdfjs

$ npm install vuetify
$ npm install @mdi/js -D

And, in your main.js file :

import Vuetify from "vuetify";

Then, copy this code where you want inside you project :

<template>
  <v-carousel :show-arrows="false" :hide-delimiters="true" class="carousel">
    <VuetifyPdf
      :url="url"
    />
  </v-carousel>
</template>

<script>
import VuetifyPdf from "vuetify-pdfjs/src/App.vue";

export default {
  components: {
    VuetifyPdf
  },
    data: () => ({
    url:'https://cors-anywhere.herokuapp.com/YourUrl.pdf'
  })
}
</script>

<style>
.carousel {
  background-color: #606f7b;
}
</style>

FAQs

Package last updated on 22 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc