summaryrefslogtreecommitdiff
path: root/source/tools/pdfshow.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/tools/pdfshow.c')
-rw-r--r--source/tools/pdfshow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/tools/pdfshow.c b/source/tools/pdfshow.c
index b3ce036f..8d178dac 100644
--- a/source/tools/pdfshow.c
+++ b/source/tools/pdfshow.c
@@ -37,7 +37,7 @@ static void showencrypt(void)
if (!doc)
fz_throw(ctx, FZ_ERROR_GENERIC, "no file specified");
- encrypt = pdf_dict_gets(ctx, pdf_trailer(ctx, doc), "Encrypt");
+ encrypt = pdf_dict_get(ctx, pdf_trailer(ctx, doc), PDF_NAME_Encrypt);
if (!encrypt)
fz_throw(ctx, FZ_ERROR_GENERIC, "document not encrypted");
fprintf(out, "encryption dictionary\n");