Skip to content

Commit

Permalink
fix ie11 syntax error (#208)
Browse files Browse the repository at this point in the history
Co-authored-by: languanghao <[email protected]>
Co-authored-by: Franck Freiburger <[email protected]>
  • Loading branch information
3 people authored Jun 3, 2020
1 parent f1f26aa commit d16ab40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pdfjsWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export default function(PDFJS) {
var pageRotate = (pdfPage.rotate === undefined ? 0 : pdfPage.rotate) + (rotate === undefined ? 0 : rotate);

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

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

Expand Down

0 comments on commit d16ab40

Please sign in to comment.