From e27cb7840b7f7a1880806f0c3bdaae719ec01781 Mon Sep 17 00:00:00 2001 From: Paul Gardiner Date: Fri, 2 Aug 2013 12:28:37 +0100 Subject: Handle more color cases in DA handling --- source/pdf/pdf-appearance.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/pdf') 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; -- cgit v1.2.3