diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-11-13 15:23:59 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-11-13 17:05:17 +0100 |
commit | 0b7754a4c353913d0b181376dd25b9c2a9edd303 (patch) | |
tree | dc62f1b671509913c899da0d24795ef5297dbffe /source/pdf/pdf-interpret.c | |
parent | 65be3177c793bb132c36f3e6bb87c3a6947be4e0 (diff) | |
download | mupdf-0b7754a4c353913d0b181376dd25b9c2a9edd303.tar.xz |
Never draw Popup annotations.
Popup annotations should never have an appearance stream, but in case
they do we shouldn't draw them.
The Open property is only to toggle whether the GUI should be showing
the Content text editing in a Popup (or Text) annotation, and should
not affect drawing the page.
Diffstat (limited to 'source/pdf/pdf-interpret.c')
-rw-r--r-- | source/pdf/pdf-interpret.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/pdf/pdf-interpret.c b/source/pdf/pdf-interpret.c index 5f974ac5..8b44079e 100644 --- a/source/pdf/pdf-interpret.c +++ b/source/pdf/pdf-interpret.c @@ -1078,7 +1078,8 @@ pdf_process_annot(fz_context *ctx, pdf_processor *proc, pdf_document *doc, pdf_p if (flags & (PDF_ANNOT_IS_INVISIBLE | PDF_ANNOT_IS_HIDDEN)) return; - if (pdf_annot_has_open(ctx, annot) && !pdf_annot_is_open(ctx, annot)) + /* popup annotations should never be drawn */ + if (pdf_annot_type(ctx, annot) == PDF_ANNOT_POPUP) return; if (proc->usage) |