
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
pdfobject-vue
Advanced tools
A PDFObject component for Vue 3 projects
Creates a <PdfObject>
Vue component, enabling easy PDF embedding in any Vue 3 project. 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
.
Important: While PDFObject has always been spelled with capitalized PDF (because it's an acronym), the Vue component uses camelCase PdfObject
. This is to align with Vue's naming convention which stipulates component names should be comprised of two words.
It's safe to use either <PdfObject>
or <pdf-object>
.
A full list of PDFObject options (and examples) can be found at PDFObject.com.
Assumes the PDFObject JS utility has also been installed via NPM. npm install pdfobject
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 PDFObjectPlugin from 'pdfobject-vue';
const app = createApp(App);
app.use(PDFObjectPlugin);
app.mount('#app');
PDFObject documentation https://pdfobject.com
PDFObject source code https://github.com/pipwerks/pdfobject
Test project for this plugin/component: https://github.com/pipwerks/PDFObject-Vue-Test
FAQs
Official PDFObject component for Vue 3
The npm package pdfobject-vue receives a total of 2,471 weekly downloads. As such, pdfobject-vue popularity was classified as popular.
We found that pdfobject-vue demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.