File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 6
6
* Copyright (c) 2010-2014 James Hall, https://github.com/MrRio/jsPDF
7
7
* 2010 Aaron Spike, https://github.com/acspike
8
8
* 2012 Willow Systems Corporation, willow-systems.com
9
- * 2012 Pablo Hess, https://github.com /pablohess
9
+ * 2012 Pablo Hess, https://github.gcom /pablohess
10
10
* 2012 Florian Jenett, https://github.com/fjenett
11
11
* 2013 Warren Weckesser, https://github.com/warrenweckesser
12
12
* 2013 Youssef Beddad, https://github.com/lifof
@@ -711,12 +711,21 @@ var jsPDF = (function(global) {
711
711
return content . join ( '\n' ) ;
712
712
} ,
713
713
getStyle = function ( style ) {
714
- // see Path-Painting Operators of PDF spec
714
+ // see path-painting operators in PDF spec
715
715
var op = 'S' ; // stroke
716
716
if ( style === 'F' ) {
717
717
op = 'f' ; // fill
718
718
} else if ( style === 'FD' || style === 'DF' ) {
719
719
op = 'B' ; // both
720
+ } else if ( style === 'f' || style === 'f*' || style === 'B' || style === 'B*' ) {
721
+ /*
722
+ Allow direct use of these PDF path-painting operators:
723
+ - f fill using nonzero winding number rule
724
+ - f* fill using even-odd rule
725
+ - B fill then stroke with fill using non-zero winding number rule
726
+ - B* fill then stroke with fill using even-odd rule
727
+ */
728
+ op = style ;
720
729
}
721
730
return op ;
722
731
} ,
You can’t perform that action at this time.
0 commit comments