From 5ae898c46a8c7c1a4612808619b5037e74c83622 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 6 Oct 2016 12:54:21 +0200 Subject: pdf: Separate functions to read text strings and text streams as UTF-8. The stream loading is used only by the JS code loading. --- include/mupdf/pdf/object.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/mupdf/pdf/object.h b/include/mupdf/pdf/object.h index 741ef09d..5c92b906 100644 --- a/include/mupdf/pdf/object.h +++ b/include/mupdf/pdf/object.h @@ -137,6 +137,8 @@ int pdf_sprint_obj(fz_context *ctx, char *s, int n, pdf_obj *obj, int tight); int pdf_print_obj(fz_context *ctx, fz_output *out, pdf_obj *obj, int tight); char *pdf_to_utf8(fz_context *ctx, pdf_obj *src); +char *pdf_load_stream_as_utf8(fz_context *ctx, pdf_obj *src); +char *pdf_load_stream_or_string_as_utf8(fz_context *ctx, pdf_obj *src); unsigned short *pdf_to_ucs2(fz_context *ctx, pdf_obj *src); pdf_obj *pdf_to_utf8_name(fz_context *ctx, pdf_document *doc, pdf_obj *src); char *pdf_from_ucs2(fz_context *ctx, unsigned short *str); -- cgit v1.2.3