diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-03-20 16:10:11 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-03-22 14:58:18 +0100 |
commit | e0c0500042bf90193c5deb196dafa5cdb64ec0dc (patch) | |
tree | 1d579e5ec2fcea11c1a293fdd5e348e3e8f999da /include | |
parent | 6d433a5702bda01f17407be6c272eae8653d1800 (diff) | |
download | mupdf-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')
-rw-r--r-- | include/mupdf/pdf/xref.h | 3 |
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 */ |