summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2018-04-11 02:22:25 +0800
committerSebastian Rasmussen <sebras@gmail.com>2018-04-11 02:23:43 +0800
commita3d3a4c01ff0481e97991f052cacc0560197fd5b (patch)
treeeeaaae2923835a9abe790d88d17cb5f11b48cd7c
parente7cc5e1de83302579bc6aabcf132a9d269f7e5f8 (diff)
downloadmupdf-a3d3a4c01ff0481e97991f052cacc0560197fd5b.tar.xz
For mutool create the encoding is not actually required.
Also update the comment in the code to mention the optional encoding argument.
-rw-r--r--source/tools/pdfcreate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/tools/pdfcreate.c b/source/tools/pdfcreate.c
index aa0e246e..74929fe9 100644
--- a/source/tools/pdfcreate.c
+++ b/source/tools/pdfcreate.c
@@ -123,7 +123,7 @@ The input is a raw content stream, with commands embedded in comments:
%%MediaBox LLX LLY URX URY
%%Rotate Angle
-%%Font Name Filename (or base 14 font name)
+%%Font Name Filename (or base 14 font name) [Encoding (Latin, Greek or Cyrillic)]
%%CJKFont Name Ordering (CNS1, GB1, Japan1, or Korea1)
%%Image Name Filename
*/
@@ -165,7 +165,7 @@ static void create_page(char *input)
{
s = fz_strsep(&p, " ");
t = fz_strsep(&p, " ");
- if (!s || !t || !p)
+ if (!s || !t)
fz_throw(ctx, FZ_ERROR_GENERIC, "Font directive missing arguments");
add_font_res(resources, s, t, p);
}