1
0
Fork 0
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:
Yury Delendik 2012-04-16 18:44:51 -05:00
parent b6edbb38c1
commit cff6c8db08
3 changed files with 10 additions and 5 deletions

View file

@ -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) {