Don't create Image object in JpegStream
This commit is contained in:
parent
90e2546ea3
commit
be73cb4f42
7
pdf.js
7
pdf.js
@ -963,13 +963,6 @@ var JpegStream = (function jpegStream() {
|
|||||||
if (isAdobeImage(bytes))
|
if (isAdobeImage(bytes))
|
||||||
bytes = fixAdobeImage(bytes);
|
bytes = fixAdobeImage(bytes);
|
||||||
|
|
||||||
// create DOM image
|
|
||||||
var img = new Image();
|
|
||||||
img.onload = (function jpegStreamOnload() {
|
|
||||||
this.loaded = true;
|
|
||||||
if (this.onLoad)
|
|
||||||
this.onLoad();
|
|
||||||
}).bind(this);
|
|
||||||
this.src = bytesToString(bytes);
|
this.src = bytesToString(bytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user