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

diff --git a/pdf.js b/pdf.js
index 1c30ac72d1da14c9d2ea12557d53644dcfae5670..ec8f74a3b7b7a55d0d3b712d458db42ca39e42e5 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -2867,13 +2867,14 @@ var CanvasGraphics = (function() {
                         error("Unable to find pattern resource");
 
                     var pattern = xref.fetchIfRef(patternRes.get(patternName.name));
-
-                    const types = [null, this.tilingFill];
-                    var typeNum = pattern.dict.get("PatternType");
+                    var patternDict = IsStream(pattern) ? pattern.dict : pattern;
+                    const types = [null, this.tilingFill,
+                                   function() { TODO("Shading Patterns"); }];
+                    var typeNum = patternDict.get("PatternType");
                     var patternFn = types[typeNum];
                     if (!patternFn)
                         error("Unhandled pattern type");
-                    patternFn.call(this, pattern);
+                    patternFn.call(this, pattern, patternDict);
                 }
             } else {
                 // TODO real impl