From a3d3a4c01ff0481e97991f052cacc0560197fd5b Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Wed, 11 Apr 2018 02:22:25 +0800 Subject: For mutool create the encoding is not actually required. Also update the comment in the code to mention the optional encoding argument. --- source/tools/pdfcreate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/tools') 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); } -- cgit v1.2.3