From 60b13ad3f7a1b597152d079b336fbbed75942998 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 6 Nov 2018 14:40:12 +0100 Subject: 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. --- platform/gl/gl-annotate.c | 1 + 1 file changed, 1 insertion(+) (limited to 'platform/gl/gl-annotate.c') 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); -- cgit v1.2.3