Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
vue_pdfjs_viewer
Advanced tools
npm install vue_pdfjs_viewer
<template>
<div id="app" style="height:593px">
<PDFView
:src.sync="src" // Valid PDF Source (read below for more info)
ref="pdfView"
fileName="order" // Name of the file that's going to be downloaded (default: {Date.now()}.pdf )
:sidebarFeatureVisible="false" // Should the sidebar feature be visible ? (default: true)
:downloadFeatureVisible="false" // Should the download button feature be active ? (default: true)
:dropzoneFeatureVisible="false" // Should the pdf dropzone feature be active ? (default: true)
:toolbarVisible="false" // Should the toolbar be visible ? (default: true)
scale.sync="scale" // String value for the page scale ["0.75", "1", "1.25", "1.5", "auto"] are supported
>
<template slot="right-toolbox"></template> <!-- Add more buttons/features on the right side of the toolbar -->
<template slot="left-toolbox"></template> <!-- Add more buttons/features on the left side of the toolbar -->
<template slot="error"></template> <!-- Change the error message design -->
<template slot="loading"></template> <!-- Change the pdf loader design -->
</PDFView>
</div>
</template>
<script>
import {PDFView} from 'vue_pdfjs_viewer';
export default {
components:{
// ...
PDFView
},
data(){
return {
scale: "1.25"
}
}
}
</script>
PDF Uint8Array Buffer
Base64 encoded PDF buffer
data:application/pdf;base64, ....
You can also drag/drop pdf files into the viewer !
FAQs
Vue viewer component built on top of pdfjs
The npm package vue_pdfjs_viewer receives a total of 37 weekly downloads. As such, vue_pdfjs_viewer popularity was classified as not popular.
We found that vue_pdfjs_viewer 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.