Add missing resolve for font obj and make sure image objs ids are strings as well
This commit is contained in:
parent
e6bd3d8105
commit
0e8952681b
1
fonts.js
1
fonts.js
@ -217,6 +217,7 @@ var FontLoader = {
|
||||
if (fontObj.loading) {
|
||||
return false;
|
||||
}
|
||||
Objects.resolve(fontObj.loadedName);
|
||||
}
|
||||
|
||||
document.documentElement.removeEventListener(
|
||||
|
2
pdf.js
2
pdf.js
@ -4183,7 +4183,7 @@ var PartialEvaluator = (function() {
|
||||
var h = dict.get('Height', 'H');
|
||||
|
||||
if (image instanceof JpegStream) {
|
||||
var objId = ++objIdCounter;
|
||||
var objId = 'img_' + ++objIdCounter;
|
||||
handler.send("obj", [objId, "JpegStream", image.getIR()]);
|
||||
|
||||
// Add the dependency on the image object.
|
||||
|
Loading…
Reference in New Issue
Block a user