diff options
author | Paul Gardiner <paul@glidos.net> | 2012-07-18 14:45:28 +0100 |
---|---|---|
committer | Paul Gardiner <paul@glidos.net> | 2012-07-18 16:42:02 +0100 |
commit | 7eb8e51b6b889fa14aae39d282675b838aa43dc9 (patch) | |
tree | 4bf26eacd64612cbe2626263fb3ca344b53ef04e /pdf/pdf_nametree.c | |
parent | b03aad16426b89728c00e8e9888de7866dde03cc (diff) | |
download | mupdf-7eb8e51b6b889fa14aae39d282675b838aa43dc9.tar.xz |
Update pdf_to_utf8 to handle either a stream or a string
Also change first argument from fz_context to pdf_document in each
of pdf_to_utf8, pdf_to_utf8_name, pdf_to_ucs2 and pdf_to_ucs2_name
Diffstat (limited to 'pdf/pdf_nametree.c')
-rw-r--r-- | pdf/pdf_nametree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_nametree.c b/pdf/pdf_nametree.c index 7d8ac319..25fced52 100644 --- a/pdf/pdf_nametree.c +++ b/pdf/pdf_nametree.c @@ -135,7 +135,7 @@ pdf_load_name_tree_imp(pdf_obj *dict, pdf_document *xref, pdf_obj *node) pdf_obj *val = pdf_array_get(names, i + 1); if (pdf_is_string(key)) { - key = pdf_to_utf8_name(ctx, key); + key = pdf_to_utf8_name(xref, key); pdf_dict_put(dict, key, val); pdf_drop_obj(key); } |