Add option to decrypt PDFs during conversion

Refs: #1074
This commit is contained in:
eikek
2021-09-29 23:04:26 +02:00
parent 87c756df0a
commit 3c93b63c8a
11 changed files with 260 additions and 12 deletions

View File

@ -586,6 +586,21 @@ Docpell Update Check
}
working-dir = ${java.io.tmpdir}"/docspell-convert"
}
# Allows to try to decrypt a PDF with encryption or protection. If
# enabled, a PDFs encryption or protection will be removed during
# conversion.
#
# For encrypted PDFs, this is necessary to be processed, because
# docspell needs to read it. It also requires to specify a
# password here. All passwords are tried when reading a PDF.
#
# This is enabled by default, using an empty password list. This
# removes protection from PDFs, which is better for processing.
decrypt-pdf = {
enabled = true
passwords = []
}
}
# The same section is also present in the rest-server config. It is