You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

pdfobject-vue

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdfobject-vue

A PDFObject component for Vue 3 projects

0.0.1
npmnpm
Version published
Weekly downloads
3.6K
20.1%
Maintainers
1
Weekly downloads
 
Created
Source

pdfobject-vue

A PDFObject component for Vue 3 projects

Creates a <PDFObject> Vue component. Pass the URL of the PDF via the url parameter (String), and any desired options via the :options (Object). Note the binding via colon :options. PDFObject options are explained at PDFObject.com.

Assumes PDFObject has been installed via NPM. npm install pdfobject

Example

In your vue file, such as App.vue:

<PDFObject url="/pdf/sample.pdf" :options="{ height: '500px', pdfOpenParams: { view: 'FitV' }}" />

In main.js

import { createApp } from 'vue';
import App from './App.vue';
import PDFObjectVuePlugin from 'pdfobject-plugin';

const app = createApp(App);
app.use(PDFObjectVuePlugin);
app.mount('#app');

FAQs

Package last updated on 01 Feb 2024

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