summaryrefslogtreecommitdiff
path: root/source/pdf
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2017-07-25 22:36:44 +0800
committerSebastian Rasmussen <sebras@gmail.com>2017-07-25 22:36:44 +0800
commit841dce12d2a4efac7e2f8b908e935487fe95e807 (patch)
tree65432f78aa48c7cb2d957f7911e51e9cbf08612f /source/pdf
parent818e78d3cadf3a6236526fa54ae188d63891a0bd (diff)
downloadmupdf-841dce12d2a4efac7e2f8b908e935487fe95e807.tar.xz
Omit drawing annotations that are not opened.
Diffstat (limited to 'source/pdf')
-rw-r--r--source/pdf/pdf-interpret.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/pdf/pdf-interpret.c b/source/pdf/pdf-interpret.c
index d9620212..ee5b9cf7 100644
--- a/source/pdf/pdf-interpret.c
+++ b/source/pdf/pdf-interpret.c
@@ -1088,6 +1088,9 @@ 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))
+ return;
+
if (proc->usage)
{
if (!strcmp(proc->usage, "Print") && !(flags & PDF_ANNOT_IS_PRINT))