Address review comments by yury
This commit is contained in:
parent
97802aac64
commit
af8e2a1189
3 changed files with 10 additions and 9 deletions
|
@ -228,3 +228,11 @@ var PDFImage = (function pdfImage() {
|
|||
};
|
||||
return constructor;
|
||||
})();
|
||||
|
||||
function loadJpegStream(id, imageData, objs) {
|
||||
var img = new Image();
|
||||
img.onload = (function jpegImageLoaderOnload() {
|
||||
objs.resolve(id, img);
|
||||
});
|
||||
img.src = 'data:image/jpeg;base64,' + window.btoa(imageData);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue