]> git.parisson.com Git - pdf.js.git/commitdiff
TODO() for radial shading
authorChris Jones <jones.chris.g@gmail.com>
Wed, 22 Jun 2011 09:17:45 +0000 (02:17 -0700)
committerChris Jones <jones.chris.g@gmail.com>
Wed, 22 Jun 2011 09:17:45 +0000 (02:17 -0700)
pdf.js

diff --git a/pdf.js b/pdf.js
index 85ee20da6951f59176b8f766118bc4ef0412880e..98768dde0a94cfacd23478a7ee3017d4e6438618 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -3024,7 +3024,7 @@ var CanvasGraphics = (function() {
             var typeNum = shading.get("ShadingType");
             var fillFn = types[typeNum];
             if (!fillFn)
-                error("Unknown type of shading");
+                error("Unknown or NYI type of shading '"+ typeNum +"'");
             fillFn.apply(this, [shading]);
 
             this.restore();
@@ -3077,6 +3077,10 @@ var CanvasGraphics = (function() {
             this.ctx.fillRect(-1e10, -1e10, 2e10, 2e10);
         },
 
+        fillRadialShading: function(sh) {
+            TODO("radial shading");
+        },
+
         // Images
         beginInlineImage: function() {
             TODO("inline images");