mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
progress
This commit is contained in:
parent
b8dd054c7d
commit
6c5d2ac88b
2 changed files with 20 additions and 1 deletions
|
@ -475,6 +475,10 @@ var PageView = function pageView(container, content, id, pageWidth, pageHeight,
|
|||
canvas.mozOpaque = true;
|
||||
div.appendChild(canvas);
|
||||
|
||||
var textDiv = document.createElement('div');
|
||||
textDiv.className = 'textLayer';
|
||||
div.appendChild(textDiv);
|
||||
|
||||
var scale = this.scale;
|
||||
canvas.width = pageWidth * scale;
|
||||
canvas.height = pageHeight * scale;
|
||||
|
@ -487,7 +491,7 @@ var PageView = function pageView(container, content, id, pageWidth, pageHeight,
|
|||
ctx.translate(-this.x * scale, -this.y * scale);
|
||||
|
||||
stats.begin = Date.now();
|
||||
this.content.startRendering(ctx, this.updateStats);
|
||||
this.content.startRendering(ctx, this.updateStats, textDiv, scale);
|
||||
|
||||
setupLinks(this.content, this.scale);
|
||||
div.setAttribute('data-loaded', true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue