summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-10-06 12:54:21 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-10-07 17:22:59 +0200
commit5ae898c46a8c7c1a4612808619b5037e74c83622 (patch)
treec6a2c1d70114eab6f9a2905e1184a203f1afcce1 /include
parent85e0700f52581793de276ba4763de066082909c1 (diff)
downloadmupdf-5ae898c46a8c7c1a4612808619b5037e74c83622.tar.xz
pdf: Separate functions to read text strings and text streams as UTF-8.
The stream loading is used only by the JS code loading.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/pdf/object.h2
1 files changed, 2 insertions, 0 deletions
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);