From e51354df45832a138dca9216408b3aea03030f49 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 12 Nov 2018 17:40:21 +0100 Subject: Fix 697728: Use UTF-8 strings in PDF portfolio functions. --- include/mupdf/pdf/document.h | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) (limited to 'include') 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 -- cgit v1.2.3