Skip to content

Commit

Permalink
Merge pull request #298 from tongbaojia/fix_color_graphicstate_dev
Browse files Browse the repository at this point in the history
Fix stoke color and non-stroke color in PDFGraphicState
  • Loading branch information
tataganesh authored Oct 13, 2019
2 parents f218996 + 106a09c commit c6ad95e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pdfminer/pdfinterp.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,25 +598,25 @@ def do_g(self, gray):

# setrgb-stroking
def do_RG(self, r, g, b):
self.graphicstate.color = (r, g, b)
self.graphicstate.scolor = (r, g, b)
#self.do_CS(LITERAL_DEVICE_RGB)
return

# setrgb-non-stroking
def do_rg(self, r, g, b):
self.graphicstate.color = (r, g, b)
self.graphicstate.ncolor = (r, g, b)
#self.do_cs(LITERAL_DEVICE_RGB)
return

# setcmyk-stroking
def do_K(self, c, m, y, k):
self.graphicstate.color = (c, m, y, k)
self.graphicstate.scolor = (c, m, y, k)
#self.do_CS(LITERAL_DEVICE_CMYK)
return

# setcmyk-non-stroking
def do_k(self, c, m, y, k):
self.graphicstate.color = (c, m, y, k)
self.graphicstate.ncolor = (c, m, y, k)
#self.do_cs(LITERAL_DEVICE_CMYK)
return

Expand Down

0 comments on commit c6ad95e

Please sign in to comment.