summaryrefslogtreecommitdiff
path: root/platform/gl/gl-annotate.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-11-06 14:40:12 +0100
committerTor Andersson <tor.andersson@artifex.com>2018-11-07 14:02:18 +0100
commit60b13ad3f7a1b597152d079b336fbbed75942998 (patch)
tree044d4c1fa08f815f8e2af98056eef430cc5bcd89 /platform/gl/gl-annotate.c
parent635b325a64d7a271bbb6a9507c2d85332aa4d028 (diff)
downloadmupdf-60b13ad3f7a1b597152d079b336fbbed75942998.tar.xz
Fix 700053: Add 'decrypt' option to pdf_save_document.
This option is exposed as the -D flag to mutool clean. Allow saving a document without encryption. The next step is to allow saving a document with new encryption, but this may require a fair amount of rejigging since the PDF write code to keep separate doc->crypt objects for decryption and encryption.
Diffstat (limited to 'platform/gl/gl-annotate.c')
-rw-r--r--platform/gl/gl-annotate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/gl/gl-annotate.c b/platform/gl/gl-annotate.c
index 48f0555e..155cac24 100644
--- a/platform/gl/gl-annotate.c
+++ b/platform/gl/gl-annotate.c
@@ -39,6 +39,7 @@ static void save_pdf_options(void)
ui_checkbox("Compress images", &save_opts.do_compress_images);
ui_checkbox("Compress fonts", &save_opts.do_compress_fonts);
ui_checkbox("Decompress", &save_opts.do_decompress);
+ ui_checkbox("Decrypt", &save_opts.do_decrypt);
ui_checkbox("Garbage collect", &save_opts.do_garbage);
ui_checkbox("Linearize", &save_opts.do_linear);
ui_checkbox("Clean syntax", &save_opts.do_clean);