]> git.parisson.com Git - pdf.js.git/commitdiff
shadingFill placeholder
authorChris Jones <jones.chris.g@gmail.com>
Tue, 10 May 2011 02:14:09 +0000 (21:14 -0500)
committerChris Jones <jones.chris.g@gmail.com>
Tue, 10 May 2011 02:14:09 +0000 (21:14 -0500)
pdf.js

diff --git a/pdf.js b/pdf.js
index b967f177f351e4fa54d9d6d48e26abfffa14176e..834dfd8e6b4ba906a8ab17d2cebb07434129d23e 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -1625,6 +1625,8 @@ var Interpreter = (function() {
             rg: gfx.setFillRGBColor,
 
             // Shading
+            sh: gfx.shadingFill,
+
             // Images
             // XObjects
             Do: gfx.paintXObject,
@@ -1820,6 +1822,10 @@ var EchoGraphics = (function() {
         },
 
         // Shading
+        shadingFill: function(entry) {
+            this.printdentln("/"+ entry.name +" sh");
+        },
+
         // Images
         // XObjects
         paintXObject: function(obj) {
@@ -2048,6 +2054,11 @@ var CanvasGraphics = (function() {
             this.ctx.fillStyle = this.makeCssRgb(r, g, b);
         },
 
+        // Shading
+        shadingFill: function(entry) {
+            // TODO
+        },
+
         // XObjects
         paintXObject: function(obj) {
             // TODO
@@ -2270,6 +2281,7 @@ var tests = [
           int(1), int(0), int(0), cmd("SC"),
           int(1), cmd("sc"),
           name("object"), cmd("Do"),
+          name("shading"), cmd("sh"),
           eof()
      ],
     },