File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ Triggered when an internal link is clicked
75
75
### Public methods
76
76
77
77
#### print(dpi, pageList) * _ experimental_ *
78
- * ` dpi ` : the print rezolution of the document (try 100).
78
+ * ` dpi ` : the print resolution of the document (try 100).
79
79
* ` pageList ` : the list (array) of pages to print.
80
80
81
81
### Public static methods
Original file line number Diff line number Diff line change @@ -196,10 +196,10 @@ export default function(PDFJS) {
196
196
if ( pdfPage === null )
197
197
return ;
198
198
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 ) ;
200
200
201
201
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 } ) ;
203
203
204
204
emitEvent ( 'page-size' , viewport . width , viewport . height ) ;
205
205
You can’t perform that action at this time.
0 commit comments