diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-11-20 18:24:36 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-11-22 23:09:51 +0100 |
commit | 6aed88ce02fa6fa77b4c9b4e91846a6160119335 (patch) | |
tree | ec7a55112a54888cfa34484d603d85e0f14df8e8 /include | |
parent | b13d7c7d2609ae32cb8fd4931eee12084e7b77b3 (diff) | |
download | mupdf-6aed88ce02fa6fa77b4c9b4e91846a6160119335.tar.xz |
Add pdf_new_text_string utility function.
Create a PDF 'text string' type string from a UTF-8 input string.
If the input is plain ASCII, keep it as is, otherwise re-encode it
as UTF-16BE.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/pdf/object.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mupdf/pdf/object.h b/include/mupdf/pdf/object.h index a1825eb2..21ed8595 100644 --- a/include/mupdf/pdf/object.h +++ b/include/mupdf/pdf/object.h @@ -17,6 +17,7 @@ pdf_obj *pdf_new_int(fz_context *ctx, pdf_document *doc, int64_t i); pdf_obj *pdf_new_real(fz_context *ctx, pdf_document *doc, float f); pdf_obj *pdf_new_name(fz_context *ctx, pdf_document *doc, const char *str); pdf_obj *pdf_new_string(fz_context *ctx, pdf_document *doc, const char *str, size_t len); +pdf_obj *pdf_new_text_string(fz_context *ctx, pdf_document *doc, const char *s); pdf_obj *pdf_new_indirect(fz_context *ctx, pdf_document *doc, int num, int gen); pdf_obj *pdf_new_array(fz_context *ctx, pdf_document *doc, int initialcap); pdf_obj *pdf_new_dict(fz_context *ctx, pdf_document *doc, int initialcap); |