diff --git a/src/plugins/pdfPlayer/plugin.js b/src/plugins/pdfPlayer/plugin.js index 9fab3b3e9..d306b0d42 100644 --- a/src/plugins/pdfPlayer/plugin.js +++ b/src/plugins/pdfPlayer/plugin.js @@ -281,7 +281,8 @@ export class PdfPlayer { this.book.getPage(number).then(page => { const width = dom.getWindowSize().innerWidth; const height = dom.getWindowSize().innerHeight; - const viewport = page.getViewport({ scale: 5 }); + const scale = Math.ceil(window.devicePixelRatio || 1); + const viewport = page.getViewport({ scale }); const context = canvas.getContext('2d'); canvas.width = viewport.width; canvas.height = viewport.height;