aboutsummaryrefslogtreecommitdiff
path: root/tw/services
diff options
context:
space:
mode:
authorTimo Wilken2024-02-26 18:41:32 +0100
committerTimo Wilken2024-02-26 18:41:32 +0100
commit0cbb63486043e165860b7765127b3327aa032fee (patch)
tree0bb3763839fe1695e7436866022db6f6cf5736cc /tw/services
parente5df4239e626675b24c5347e3eae90699c76f313 (diff)
Make Paperless handle PDF files more gracefully
Diffstat (limited to 'tw/services')
-rw-r--r--tw/services/paperless.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/tw/services/paperless.scm b/tw/services/paperless.scm
index b643ac99..e115ea57 100644
--- a/tw/services/paperless.scm
+++ b/tw/services/paperless.scm
@@ -48,6 +48,10 @@ PAPERLESS_OCR_LANGUAGES=eng deu fra por
PAPERLESS_TIME_ZONE=Europe/Berlin
PAPERLESS_UID=" (number->string %paperless-uid) "
PAPERLESS_GID=" (number->string %paperless-uid) "
+# OCRmyPDF normally refuses to process signed PDFs, but Paperless-ngx saves
+# the original file in addition to the OCR'd one, so it's fine. Also, continue
+# even if ghostscript can't parse the processed PDF file, for some reason.
+PAPERLESS_OCR_USER_ARGS={\"invalidate_digital_signatures\": true, \"continue_on_soft_render_error\": true}
"))))
(define (paperless-docker-service config)