summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-xobject.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-01-30 16:14:24 +0100
committerTor Andersson <tor.andersson@artifex.com>2018-01-31 11:57:00 +0100
commit43e6a76ff86747501b77f2e485bdfcd8c067fb8f (patch)
treea74407012dd8867f58d307212096920cfc1c642b /source/pdf/pdf-xobject.c
parente4b3a9d4c74272d421492b4967c6190cf26f8a73 (diff)
downloadmupdf-43e6a76ff86747501b77f2e485bdfcd8c067fb8f.tar.xz
Use convenience pdf dictionary/array creation functions.
Diffstat (limited to 'source/pdf/pdf-xobject.c')
-rw-r--r--source/pdf/pdf-xobject.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/pdf/pdf-xobject.c b/source/pdf/pdf-xobject.c
index 38a31c48..bac856fd 100644
--- a/source/pdf/pdf-xobject.c
+++ b/source/pdf/pdf-xobject.c
@@ -134,10 +134,10 @@ pdf_new_xobject(fz_context *ctx, pdf_document *doc, const fz_rect *bbox, const f
fz_try(ctx)
{
dict = pdf_new_dict(ctx, doc, 0);
- pdf_dict_put_drop(ctx, dict, PDF_NAME_BBox, pdf_new_rect(ctx, doc, bbox));
- pdf_dict_put_drop(ctx, dict, PDF_NAME_FormType, pdf_new_int(ctx, doc, 1));
- pdf_dict_put_drop(ctx, dict, PDF_NAME_Length, pdf_new_int(ctx, doc, 0));
- pdf_dict_put_drop(ctx, dict, PDF_NAME_Matrix, pdf_new_matrix(ctx, doc, mat));
+ pdf_dict_put_rect(ctx, dict, PDF_NAME_BBox, bbox);
+ pdf_dict_put_int(ctx, dict, PDF_NAME_FormType, 1);
+ pdf_dict_put_int(ctx, dict, PDF_NAME_Length, 0);
+ pdf_dict_put_matrix(ctx, dict, PDF_NAME_Matrix, mat);
res = pdf_new_dict(ctx, doc, 0);
pdf_dict_put(ctx, dict, PDF_NAME_Resources, res);