diff options
author | Paul Gardiner <paulg.artifex@glidos.net> | 2013-08-02 12:28:37 +0100 |
---|---|---|
committer | Paul Gardiner <paulg.artifex@glidos.net> | 2013-08-02 12:28:37 +0100 |
commit | e27cb7840b7f7a1880806f0c3bdaae719ec01781 (patch) | |
tree | 1efc88aa0769b47eb3c80ae7ae4bc8a53e01587b /source | |
parent | 05c787d00dc552326c720bd0aadec7029d2ffc00 (diff) | |
download | mupdf-e27cb7840b7f7a1880806f0c3bdaae719ec01781.tar.xz |
Handle more color cases in DA handling
Diffstat (limited to 'source')
-rw-r--r-- | source/pdf/pdf-appearance.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/pdf/pdf-appearance.c b/source/pdf/pdf-appearance.c index 8c2c85bf..53fe3627 100644 --- a/source/pdf/pdf-appearance.c +++ b/source/pdf/pdf-appearance.c @@ -127,6 +127,11 @@ void pdf_parse_da(fz_context *ctx, char *da, pdf_da_info *di) di->col[2] = stack[2]; di->col_size = 3; } + else if (!strcmp(lbuf.scratch, "g")) + { + di->col[0] = stack[0]; + di->col_size = 1; + } fz_free(ctx, name); name = NULL; |