comparison Applications/StoneWebViewer/WebApplication/pdf-viewer.js @ 1661:e4589378ad8b

warning message about unsupported videos
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 19 Nov 2020 10:29:33 +0100
parents 66e5fcdf5597
children 9ac2a65d4172
comparison
equal deleted inserted replaced
1660:05b55b89a134 1661:e4589378ad8b
166 pageNum <= this.countPages) { 166 pageNum <= this.countPages) {
167 this.isRendering = true; 167 this.isRendering = true;
168 this.pdfDoc.getPage(pageNum).then(function(page) { 168 this.pdfDoc.getPage(pageNum).then(function(page) {
169 var viewport = page.getViewport({scale: that.scale}); 169 var viewport = page.getViewport({scale: that.scale});
170 170
171 that.canvas.style['background-color'] = 'white'; // avoids flickering while the page changes
171 that.canvas.height = viewport.height; 172 that.canvas.height = viewport.height;
172 that.canvas.width = viewport.width; 173 that.canvas.width = viewport.width;
173 174
174 // Horizontal centering of the canvas. This requires CSS 175 // Horizontal centering of the canvas. This requires CSS
175 // "position: relative" on the canvas element. 176 // "position: relative" on the canvas element.