diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-11-06 14:40:12 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-11-07 14:02:18 +0100 |
commit | 60b13ad3f7a1b597152d079b336fbbed75942998 (patch) | |
tree | 044d4c1fa08f815f8e2af98056eef430cc5bcd89 /include | |
parent | 635b325a64d7a271bbb6a9507c2d85332aa4d028 (diff) | |
download | mupdf-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 'include')
-rw-r--r-- | include/mupdf/pdf/document.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mupdf/pdf/document.h b/include/mupdf/pdf/document.h index 7d2110b7..27e3d4f4 100644 --- a/include/mupdf/pdf/document.h +++ b/include/mupdf/pdf/document.h @@ -879,6 +879,7 @@ struct pdf_write_options_s int do_linear; /* Write linearised. */ int do_clean; /* Clean content streams. */ int do_sanitize; /* Sanitize content streams. */ + int do_decrypt; /* Save without decryption. */ int continue_on_error; /* If set, errors are (optionally) counted and writing continues. */ int *errors; /* Pointer to a place to store a count of errors */ }; |