]> git.parisson.com Git - pdf.js.git/commitdiff
Brought pdf.js back up to the latest revision.
authorJustin D'Arcangelo <justindarc@gmail.com>
Fri, 24 Jun 2011 01:37:40 +0000 (21:37 -0400)
committerJustin D'Arcangelo <justindarc@gmail.com>
Fri, 24 Jun 2011 01:37:40 +0000 (21:37 -0400)
pdf.js

diff --git a/pdf.js b/pdf.js
index ffefc61a19557543255182d9dea7ed1d2cce4524..b2b6401fd4dfb29e9b0f7d539b8252cacb95ab9f 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -3275,8 +3275,11 @@ var CanvasGraphics = (function() {
                 }
             }
 
-            if (bitsPerComponent !== 8)
-                error("Unsupported bpc");
+            if (bitsPerComponent !== 8) {
+                TODO("Support bpc="+ bitsPerComponent);
+                this.restore();
+                return;
+            }
 
             var xref = this.xref;
             var colorSpaces = this.colorSpaces;