diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-08-30 15:23:45 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-09-01 15:39:56 +0200 |
commit | 960cd3d0ffde26f40b81256fe7b309bbaefc5410 (patch) | |
tree | d1b505e03b0388c66337ba004f99cb2fc33aa2ca /source/pdf/pdf-font.c | |
parent | f86e9738deb6c6887fb51f2d11e8294cfc1b51cb (diff) | |
download | mupdf-960cd3d0ffde26f40b81256fe7b309bbaefc5410.tar.xz |
pdf: Load/open streams by indirect reference object when possible.
Diffstat (limited to 'source/pdf/pdf-font.c')
-rw-r--r-- | source/pdf/pdf-font.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/pdf/pdf-font.c b/source/pdf/pdf-font.c index a0bdc5f9..5af16f13 100644 --- a/source/pdf/pdf-font.c +++ b/source/pdf/pdf-font.c @@ -411,7 +411,7 @@ pdf_load_embedded_font(fz_context *ctx, pdf_document *doc, pdf_font_desc *fontde { fz_buffer *buf; - buf = pdf_load_stream(ctx, doc, pdf_to_num(ctx, stmref)); + buf = pdf_load_stream(ctx, stmref); fz_try(ctx) fontdesc->font = fz_new_font_from_buffer(ctx, fontname, buf, 0, 1); fz_always(ctx) @@ -1020,7 +1020,7 @@ load_cid_font(fz_context *ctx, pdf_document *doc, pdf_obj *dict, pdf_obj *encodi fz_buffer *buf; size_t z; - buf = pdf_load_stream(ctx, doc, pdf_to_num(ctx, cidtogidmap)); + buf = pdf_load_stream(ctx, cidtogidmap); fontdesc->cid_to_gid_len = (buf->len) / 2; fontdesc->cid_to_gid = fz_malloc_array(ctx, fontdesc->cid_to_gid_len, sizeof(unsigned short)); |