1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Manually fix remaining ESLint errors

This commit is contained in:
Wojciech Maj 2018-12-06 14:02:39 +01:00
parent ef1f255649
commit 9e3f7ac7fa
9 changed files with 42 additions and 21 deletions

View file

@ -108,11 +108,12 @@ loadingTask.promise.then(function(doc) {
var svgGfx = new pdfjsLib.SVGGraphics(page.commonObjs, page.objs);
svgGfx.embedFonts = true;
return svgGfx.getSVG(opList, viewport).then(function (svg) {
return writeSvgToFile(svg, getFilePathForPage(pageNum)).then(function () {
console.log('Page: ' + pageNum);
}, function(err) {
console.log('Error: ' + err);
});
return writeSvgToFile(svg, getFilePathForPage(pageNum))
.then(function () {
console.log('Page: ' + pageNum);
}, function(err) {
console.log('Error: ' + err);
});
});
});
});