Fix gjslint warnings.
This commit is contained in:
parent
8e5a8fb49f
commit
b5412c13d8
2 changed files with 6 additions and 5 deletions
4
pdf.js
4
pdf.js
|
@ -876,8 +876,8 @@ var JpegStream = (function() {
|
|||
|
||||
function fixYcckImage(bytes) {
|
||||
// Inserting 'EMBED' marker after JPEG signature
|
||||
var embedMarker = new Uint8Array([0xFF, 0xEC, 0, 8,
|
||||
0x45, 0x4D, 0x42, 0x45, 0x44, 0]);
|
||||
var embedMarker = new Uint8Array([0xFF, 0xEC, 0, 8, 0x45, 0x4D, 0x42, 0x45,
|
||||
0x44, 0]);
|
||||
var newBytes = new Uint8Array(bytes.length + embedMarker.length);
|
||||
newBytes.set(bytes, embedMarker.length);
|
||||
// copy JPEG header
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue