From 7eb8e51b6b889fa14aae39d282675b838aa43dc9 Mon Sep 17 00:00:00 2001 From: Paul Gardiner Date: Wed, 18 Jul 2012 14:45:28 +0100 Subject: 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 --- pdf/pdf_xref.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pdf/pdf_xref.c') diff --git a/pdf/pdf_xref.c b/pdf/pdf_xref.c index a1a19f22..4a03751c 100644 --- a/pdf/pdf_xref.c +++ b/pdf/pdf_xref.c @@ -1222,7 +1222,7 @@ pdf_meta(pdf_document *doc, int key, void *ptr, int size) } if (info && ptr && size) { - char *utf8 = pdf_to_utf8(doc->ctx, info); + char *utf8 = pdf_to_utf8(doc, info); strncpy(ptr, utf8, size); ((char *)ptr)[size-1] = 0; fz_free(doc->ctx, utf8); -- cgit v1.2.3