vue-pdf-eurlanda
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "vue-pdf-eurlanda", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "vue.js pdf viewer", | ||
@@ -5,0 +5,0 @@ "main": "src/vuePdfNoSss.vue", |
@@ -115,2 +115,3 @@ import resizeSensor from 'vue-resize-sensor' | ||
//let width = document.getElementById(this.container).offsetWidth; | ||
tnis.pdf.getCanvas().style.width = width + "px"; | ||
let docheight = document.getElementById(this.container).offsetHeight; | ||
@@ -117,0 +118,0 @@ let calHeight = this.pdf.getCanvas().offsetWidth * (this.pdf.getCanvas().height / this.pdf.getCanvas().width); |
@@ -242,3 +242,2 @@ import { CMapCompressionType } from 'pdfjs-dist/lib/shared/util'; | ||
canvasElt.height = viewport.height; | ||
canvasElt.style.width = viewport.width + "px"; | ||
pdfRender = pdfPage.render({ | ||
@@ -245,0 +244,0 @@ canvasContext: canvasElt.getContext('2d'), |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32234