diff options
author | Robin Watts <robin.watts@artifex.com> | 2014-06-05 14:57:37 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2015-02-25 19:12:29 +0000 |
commit | c47220017efa6daccd6e12ebb93b0d82b892dad3 (patch) | |
tree | 4f167fe5582712a032ff5cf0503fd1a328309071 /source/pdf/pdf-appearance.c | |
parent | d4b742ab61f32abd7b49bb507e69c8d43f400bbc (diff) | |
download | mupdf-c47220017efa6daccd6e12ebb93b0d82b892dad3.tar.xz |
Allow pdf_device to be created with pre-populated buffer.
When watermarking, we may want to use the PDF device on an
existing buffer. In this case, we have no 'contents' object.
Diffstat (limited to 'source/pdf/pdf-appearance.c')
-rw-r--r-- | source/pdf/pdf-appearance.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-appearance.c b/source/pdf/pdf-appearance.c index ce9bdb1f..830adeeb 100644 --- a/source/pdf/pdf-appearance.c +++ b/source/pdf/pdf-appearance.c @@ -1374,7 +1374,7 @@ void pdf_set_annot_appearance(fz_context *ctx, pdf_document *doc, pdf_annot *ann pdf_dict_puts_drop(ctx, ap_obj, "Matrix", pdf_new_matrix(ctx, doc, &mat)); } - dev = pdf_new_pdf_device(ctx, doc, ap_obj, pdf_dict_gets(ctx, ap_obj, "Resources"), &mat); + dev = pdf_new_pdf_device(ctx, doc, ap_obj, pdf_dict_gets(ctx, ap_obj, "Resources"), &mat, NULL); fz_run_display_list(ctx, disp_list, dev, &ctm, &fz_infinite_rect, NULL); fz_drop_device(ctx, dev); |