Merge pull request #298 from tongbaojia/fix_color_graphicstate_dev
Fix stoke color and non-stroke color in PDFGraphicStatepull/306/head
commit
c6ad95ea87
|
@ -598,25 +598,25 @@ class PDFPageInterpreter(object):
|
||||||
|
|
||||||
# setrgb-stroking
|
# setrgb-stroking
|
||||||
def do_RG(self, r, g, b):
|
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)
|
#self.do_CS(LITERAL_DEVICE_RGB)
|
||||||
return
|
return
|
||||||
|
|
||||||
# setrgb-non-stroking
|
# setrgb-non-stroking
|
||||||
def do_rg(self, r, g, b):
|
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)
|
#self.do_cs(LITERAL_DEVICE_RGB)
|
||||||
return
|
return
|
||||||
|
|
||||||
# setcmyk-stroking
|
# setcmyk-stroking
|
||||||
def do_K(self, c, m, y, k):
|
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)
|
#self.do_CS(LITERAL_DEVICE_CMYK)
|
||||||
return
|
return
|
||||||
|
|
||||||
# setcmyk-non-stroking
|
# setcmyk-non-stroking
|
||||||
def do_k(self, c, m, y, k):
|
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)
|
#self.do_cs(LITERAL_DEVICE_CMYK)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue