diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-06-14 14:54:24 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-06-22 16:23:34 +0200 |
commit | 560705fee2b8a21f5a8f51e3ff344b54911b8697 (patch) | |
tree | 3d55a6b8f830f7fb763fffbea340b00901ef0f22 /source/pdf | |
parent | 3a263069d58416c251ef9f6a100a54be1e90dc0b (diff) | |
download | mupdf-560705fee2b8a21f5a8f51e3ff344b54911b8697.tar.xz |
Add pdf_dict_get_name function.
Diffstat (limited to 'source/pdf')
-rw-r--r-- | source/pdf/pdf-object.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/pdf/pdf-object.c b/source/pdf/pdf-object.c index fca1e461..b00bf286 100644 --- a/source/pdf/pdf-object.c +++ b/source/pdf/pdf-object.c @@ -2235,6 +2235,11 @@ float pdf_dict_get_real(fz_context *ctx, pdf_obj *dict, pdf_obj *key) return pdf_to_real(ctx, pdf_dict_get(ctx, dict, key)); } +const char *pdf_dict_get_name(fz_context *ctx, pdf_obj *dict, pdf_obj *key) +{ + return pdf_to_name(ctx, pdf_dict_get(ctx, dict, key)); +} + const char *pdf_dict_get_string(fz_context *ctx, pdf_obj *dict, pdf_obj *key, size_t *sizep) { pdf_obj *val = pdf_dict_get(ctx, dict, key); |