summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-11-12 17:40:21 +0100
committerTor Andersson <tor.andersson@artifex.com>2018-11-12 17:54:23 +0100
commite51354df45832a138dca9216408b3aea03030f49 (patch)
tree4bcdea163c68b2ccf12e4ca3478185ff10c94a03 /include
parent947e070adb0f47a9297c18119edc221401abd1c7 (diff)
downloadmupdf-e51354df45832a138dca9216408b3aea03030f49.tar.xz
Fix 697728: Use UTF-8 strings in PDF portfolio functions.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/pdf/document.h21
1 files changed, 5 insertions, 16 deletions
diff --git a/include/mupdf/pdf/document.h b/include/mupdf/pdf/document.h
index 27e3d4f4..3a11787b 100644
--- a/include/mupdf/pdf/document.h
+++ b/include/mupdf/pdf/document.h
@@ -468,32 +468,21 @@ pdf_obj *pdf_portfolio_entry_info(fz_context *ctx, pdf_document *doc, int entry,
name: The name to use for this entry (as used in the
PDF name tree for the collection).
- name_len: The byte length of name.
-
desc: The description to use for this entry (as used
in the 'Desc' entry in the Collection entry).
- desc_len: The byte length of desc.
-
filename: The filename to use for this entry (as used
- in the 'F' entry in the collection entry).
-
- filename_len: The byte length of filename.
-
- unifilename: The filename to use for this entry (as used
- in the 'UF' entry in the collection entry).
-
- unifilename_len: The byte length of unifilename.
+ in the 'F' and 'UF' entries in the collection entry).
buf: The buffer containing the embedded file to add.
Returns the entry number for this new entry.
*/
int pdf_add_portfolio_entry(fz_context *ctx, pdf_document *doc,
- const char *name, int name_len,
- const char *desc, int desc_len,
- const char *filename, int filename_len,
- const char *unifile, int unifile_len, fz_buffer *buf);
+ const char *name,
+ const char *desc,
+ const char *filename,
+ fz_buffer *buf);
/*
pdf_set_portfolio_entry_info: Set part of the entry