]> git.parisson.com Git - pdf.js.git/commitdiff
TODO for bpc!=8
authorChris Jones <jones.chris.g@gmail.com>
Fri, 24 Jun 2011 00:09:42 +0000 (17:09 -0700)
committerChris Jones <jones.chris.g@gmail.com>
Fri, 24 Jun 2011 00:09:42 +0000 (17:09 -0700)
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;