From d0128375e8a08c49d4d7e3e5612961237c696db8 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 16 Aug 2018 13:39:56 +0200 Subject: Fix 699641: Follow Parent chain when looking up DA in annotations. The DA property is marked as inheritable for text fields. It is not marked inheritable for FreeText annotations, but I don't believe it will be a problem to treat it as such anyway. --- source/pdf/pdf-annot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/pdf/pdf-annot.c b/source/pdf/pdf-annot.c index 85c0f28b..68de8898 100644 --- a/source/pdf/pdf-annot.c +++ b/source/pdf/pdf-annot.c @@ -1488,7 +1488,7 @@ pdf_print_default_appearance(fz_context *ctx, char *buf, int nbuf, const char *f void pdf_annot_default_appearance(fz_context *ctx, pdf_annot *annot, const char **font, float *size, float color[3]) { - pdf_obj *da = pdf_dict_get(ctx, annot->obj, PDF_NAME(DA)); + pdf_obj *da = pdf_dict_get_inheritable(ctx, annot->obj, PDF_NAME(DA)); if (!da) { pdf_obj *trailer = pdf_trailer(ctx, annot->page->doc); -- cgit v1.2.3