mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
skip cached objects and has consistent font ids
This commit is contained in:
parent
b6edbb38c1
commit
cff6c8db08
3 changed files with 10 additions and 5 deletions
|
@ -194,13 +194,15 @@ function nextPage(task, loadError) {
|
|||
textLayer: textLayerBuilder,
|
||||
viewport: viewport
|
||||
};
|
||||
page.render(renderContext).then(function() {
|
||||
var completeRender = (function(error) {
|
||||
page.destroy();
|
||||
snapshotCurrentPage(task, false);
|
||||
snapshotCurrentPage(task, error);
|
||||
});
|
||||
page.render(renderContext).then(function() {
|
||||
completeRender(false);
|
||||
},
|
||||
function(error) {
|
||||
page.destroy();
|
||||
snapshotCurrentPage(task, 'render : ' + error);
|
||||
completeRender('render : ' + error);
|
||||
});
|
||||
},
|
||||
function(error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue