|
|
@@ -28,8 +28,8 @@
|
|
|
this._context = this._canvas.getContext("2d");
|
|
|
|
|
|
// Default size
|
|
|
- this._canvas.height = 450;
|
|
|
- this._canvas.width = 700;
|
|
|
+ this._canvas.height = 500;
|
|
|
+ this._canvas.width = 800;
|
|
|
|
|
|
if (this.src) {
|
|
|
this.load(this.src);
|
|
|
@@ -67,7 +67,7 @@
|
|
|
},
|
|
|
showPage() {
|
|
|
this._pdf && this._pdf.getPage(this.currentPage || 1).then(page => {
|
|
|
- const scale = 2.5;
|
|
|
+ const scale = 1;
|
|
|
const viewport = page.getViewport({scale: scale});
|
|
|
|
|
|
this._canvas.height = viewport.height;
|