summaryrefslogtreecommitdiff
path: root/source/tools
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-03-20 16:12:48 +0100
committerTor Andersson <tor.andersson@artifex.com>2018-03-22 14:58:18 +0100
commitd92590ee1467880f327b2e688ae8bc353bdadb18 (patch)
tree51d446bc0fd746a8ac4fd31c229dec40c911c4ad /source/tools
parente0c0500042bf90193c5deb196dafa5cdb64ec0dc (diff)
downloadmupdf-d92590ee1467880f327b2e688ae8bc353bdadb18.tar.xz
Use pdf_add_new_dict family of functions.
Diffstat (limited to 'source/tools')
-rw-r--r--source/tools/pdfportfolio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/tools/pdfportfolio.c b/source/tools/pdfportfolio.c
index 8e252d43..a5830149 100644
--- a/source/tools/pdfportfolio.c
+++ b/source/tools/pdfportfolio.c
@@ -258,7 +258,7 @@ int pdfportfolio_main(int argc, char **argv)
font_obj = pdf_add_simple_font(ctx, doc, font, PDF_SIMPLE_ENCODING_LATIN);
fz_drop_font(ctx, font);
- resources = pdf_add_object_drop(ctx, doc, pdf_new_dict(ctx, doc, 1));
+ resources = pdf_add_new_dict(ctx, doc, 1);
pdf_dict_putp_drop(ctx, resources, "Font/Tm", font_obj);
contents = fz_new_buffer_from_shared_data(ctx, (const unsigned char *)template, strlen(template));