summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-interpret.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/pdf/pdf-interpret.c')
-rw-r--r--source/pdf/pdf-interpret.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/pdf/pdf-interpret.c b/source/pdf/pdf-interpret.c
index f3b875cd..c4dfaf88 100644
--- a/source/pdf/pdf-interpret.c
+++ b/source/pdf/pdf-interpret.c
@@ -1250,12 +1250,15 @@ pdf_process_annot(fz_context *ctx, pdf_processor *proc, pdf_document *doc, pdf_p
if (pdf_is_hidden_ocg(ctx, doc->ocg, NULL, proc->event, pdf_dict_get(ctx, annot->obj, PDF_NAME_OC)))
return;
- if (proc->op_q && proc->op_cm && proc->op_Do_form && proc->op_Q)
+ if (proc->op_q && proc->op_cm && proc->op_Do_form && proc->op_Q && annot->ap)
{
+ fz_matrix matrix;
+ pdf_annot_transform(ctx, annot, &matrix);
proc->op_q(ctx, proc);
proc->op_cm(ctx, proc,
- annot->matrix.a, annot->matrix.b, annot->matrix.c,
- annot->matrix.d, annot->matrix.e, annot->matrix.f);
+ matrix.a, matrix.b,
+ matrix.c, matrix.d,
+ matrix.e, matrix.f);
proc->op_Do_form(ctx, proc, NULL, annot->ap, pdf_page_resources(ctx, page));
proc->op_Q(ctx, proc);
}