Skip to content

Commit 5695180

Browse files
committedJun 3, 2020
Merge branch 'master' of github.com:FranckFreiburger/vue-pdf
2 parents 7ecc293 + d16ab40 commit 5695180

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Triggered when an internal link is clicked
7575
### Public methods
7676

7777
#### print(dpi, pageList) * _experimental_ *
78-
* `dpi`: the print rezolution of the document (try 100).
78+
* `dpi`: the print resolution of the document (try 100).
7979
* `pageList`: the list (array) of pages to print.
8080

8181
### Public static methods

‎src/pdfjsWrapper.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,10 @@ export default function(PDFJS) {
196196
if ( pdfPage === null )
197197
return;
198198

199-
rotate = (pdfPage.rotate === undefined ? 0 : pdfPage.rotate) + (rotate === undefined ? 0 : rotate);
199+
var pageRotate = (pdfPage.rotate === undefined ? 0 : pdfPage.rotate) + (rotate === undefined ? 0 : rotate);
200200

201201
var scale = canvasElt.offsetWidth / pdfPage.getViewport({ scale: 1 }).width * (window.devicePixelRatio || 1);
202-
var viewport = pdfPage.getViewport({ scale, rotation:rotate });
202+
var viewport = pdfPage.getViewport({ scale: scale, rotation:pageRotate });
203203

204204
emitEvent('page-size', viewport.width, viewport.height);
205205

0 commit comments

Comments
 (0)
Please sign in to comment.