summaryrefslogtreecommitdiff
path: root/include/mupdf/pdf
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-03-20 16:10:11 +0100
committerTor Andersson <tor.andersson@artifex.com>2018-03-22 14:58:18 +0100
commite0c0500042bf90193c5deb196dafa5cdb64ec0dc (patch)
tree1d579e5ec2fcea11c1a293fdd5e348e3e8f999da /include/mupdf/pdf
parent6d433a5702bda01f17407be6c272eae8653d1800 (diff)
downloadmupdf-e0c0500042bf90193c5deb196dafa5cdb64ec0dc.tar.xz
Add pdf_add_new_dict family of functions.
Create a new empty dictionary, add it to the xref and return a new indirect reference object that points to it. This indirect reference needs to be dropped, since it was created with a function using the 'new' keyword.
Diffstat (limited to 'include/mupdf/pdf')
-rw-r--r--include/mupdf/pdf/xref.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mupdf/pdf/xref.h b/include/mupdf/pdf/xref.h
index 87a84efe..1924b635 100644
--- a/include/mupdf/pdf/xref.h
+++ b/include/mupdf/pdf/xref.h
@@ -29,6 +29,9 @@ pdf_obj *pdf_add_object(fz_context *ctx, pdf_document *doc, pdf_obj *obj);
pdf_obj *pdf_add_object_drop(fz_context *ctx, pdf_document *doc, pdf_obj *obj);
pdf_obj *pdf_add_stream(fz_context *ctx, pdf_document *doc, fz_buffer *buf, pdf_obj *obj, int compressed);
+pdf_obj *pdf_add_new_dict(fz_context *ctx, pdf_document *doc, int initial);
+pdf_obj *pdf_add_new_array(fz_context *ctx, pdf_document *doc, int initial);
+
/*
* xref and object / stream api
*/