From 20b0fb9dc084f40f14fad95edd5267db062eba51 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Wed, 22 Jun 2011 02:37:59 -0700 Subject: [PATCH] add TODO() for Shading Pattern --- pdf.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pdf.js b/pdf.js index 1c30ac72d..ec8f74a3b 100644 --- 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