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

Add ability to fast track natively supported jpegs.

This commit is contained in:
Brendan Dahl 2011-12-08 21:18:04 -08:00
parent d1c823efce
commit 7d1cddf371
5 changed files with 59 additions and 23 deletions

View file

@ -563,6 +563,10 @@ var PDFDoc = (function pdfDoc() {
var type = data[1];
switch (type) {
case 'JpegStream':
var imageData = data[2];
loadJpegStream(id, imageData, this.objs);
break;
case 'Image':
var imageData = data[2];
this.objs.resolve(id, imageData);