Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color not returned for text (wrong variable being set?) #184

Closed
uprichard opened this issue Sep 19, 2018 · 2 comments
Closed

Color not returned for text (wrong variable being set?) #184

uprichard opened this issue Sep 19, 2018 · 2 comments

Comments

@uprichard
Copy link

In pdfinterp.py the color is put into self.graphicstate.color but I think it should be self.graphicstate.ncolor

For example:

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

Should be

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

This was fixed with PR #129.

See 2231f08#diff-2275db414f4c92f9920df88b9b22446d

@pietermarsman
Copy link
Member

Fixed in #287 and #298.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants