New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tato30/vue-pdf

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tato30/vue-pdf - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

2

package.json
{
"name": "@tato30/vue-pdf",
"description": "PDF viewer for Vue 3",
"version": "1.3.0",
"version": "1.3.1",
"license": "MIT",

@@ -6,0 +6,0 @@ "main": "cjs/index.js",

@@ -178,2 +178,13 @@ # VuePDF

#### **:fit-parent**
Type: `boolean` <br />
Default: `false`
Fit page with parent width, this prop replace `scale` in width calculation
```html
<VuePDF :pdf="pdf" :page="1" fit-parent />
```
#### **:rotation**

@@ -242,2 +253,25 @@

### **Methods**
#### **reload()**
Allows to reload page render task, useful to update parent width when `fit-parent` prop is used
```vue
<template>
<VuePDF :pdf="pdf" :page="2" ref="VPDF" />
</template>
setup(){
const VPDF = ref({})
return {
VPDF,
someEvent: () => {
VPDF.value.reload()
},
}
}
```
### **Events**

@@ -244,0 +278,0 @@

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