File tree Expand file tree Collapse file tree 3 files changed +32
-5
lines changed Expand file tree Collapse file tree 3 files changed +32
-5
lines changed Original file line number Diff line number Diff line change @@ -115,11 +115,29 @@ Shadings.RadialAxial = (function RadialAxialClosure() {
115
115
this .extendEnd = extendEnd ;
116
116
117
117
var fnObj = dict .get ('Function' );
118
- if (isArray (fnObj ))
119
- error ('No support for array of functions' );
120
- if (!isPDFFunction (fnObj ))
121
- error ('Invalid function' );
122
- var fn = PDFFunction .parse (xref , fnObj );
118
+ var fn ;
119
+ if (isArray (fnObj )) {
120
+ var fnArray = [];
121
+ for (var j = 0 , jj = fnObj .length ; j < jj ; j ++) {
122
+ var obj = xref .fetchIfRef (fnObj [j ]);
123
+ if (!isPDFFunction (obj )) {
124
+ error ('Invalid function' );
125
+ }
126
+ fnArray .push (PDFFunction .parse (xref , obj ));
127
+ }
128
+ fn = function radialAxialColorFunction (arg ) {
129
+ var out = [];
130
+ for (var i = 0 , ii = fnArray .length ; i < ii ; i ++) {
131
+ out .push (fnArray [i ](arg )[0 ]);
132
+ }
133
+ return out ;
134
+ };
135
+ } else {
136
+ if (!isPDFFunction (fnObj )) {
137
+ error ('Invalid function' );
138
+ }
139
+ fn = PDFFunction .parse (xref , fnObj );
140
+ }
123
141
124
142
// 10 samples seems good enough for now, but probably won't work
125
143
// if there are sharp color changes. Ideally, we would implement
Original file line number Diff line number Diff line change
1
+ http://pages.sencha.com/rs/sencha/images/Sencha-WP-Dev-Mgrs-Guide-to-HTML5.pdf
Original file line number Diff line number Diff line change 713
713
"link" : true ,
714
714
"type" : " eq"
715
715
},
716
+ { "id" : " issue2006" ,
717
+ "file" : " pdfs/issue2006.pdf" ,
718
+ "md5" : " 71ec73831ece9b508ad20efa6ff28642" ,
719
+ "rounds" : 1 ,
720
+ "pageLimit" : 1 ,
721
+ "link" : true ,
722
+ "type" : " eq"
723
+ },
716
724
{ "id" : " issue1729" ,
717
725
"file" : " pdfs/issue1729.pdf" ,
718
726
"md5" : " 29b0eddc3e1dcb23a44384037032d470" ,
You can’t perform that action at this time.
0 commit comments