From af5ef6c564b72a46dc483aecf316e68173521f11 Mon Sep 17 00:00:00 2001 From: CodeShakingSheep <19874562+CodeShakingSheep@users.noreply.github.com> Date: Mon, 1 Jul 2024 15:05:16 -0500 Subject: [PATCH 1/3] Update config_panel.toml Add option in config panel to consume digitally signed PDFs --- config_panel.toml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/config_panel.toml b/config_panel.toml index 2158681..dadfb70 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -13,7 +13,16 @@ name = "Paperless-ngx configuration" type = "string" default = "eng" help = """\ -Read this informations: https://github.com/YunoHost-Apps/paperless-ngx_ynh/tree/master/doc/PRE_INSTALL.md\n\ +Read this information: https://github.com/YunoHost-Apps/paperless-ngx_ynh/tree/master/doc/PRE_INSTALL.md\n\ If your language contains a '-' such as chi-sim, you must use chi_sim\n\ Examples:\n- eng\n- eng+fra\n- eng+fra+chi_sim""" bind = "PAPERLESS_OCR_LANGUAGE:__INSTALL_DIR__/paperless.conf" + + [main.ocr.ocr_invalidate_digital_signatures] + ask = "Do you want signed PDF files to be consumed?" + type = "boolean" + default = "0" + help = """\ +Read this information: https://github.com/paperless-ngx/paperless-ngx/discussions/4047\n\ +""" + bind = "PAPERLESS_OCR_USER_ARGS:__INSTALL_DIR__/paperless.conf" From 9c2c3a2e586c99e73eebad9b9fbee88a49951bce Mon Sep 17 00:00:00 2001 From: CodeShakingSheep <19874562+CodeShakingSheep@users.noreply.github.com> Date: Wed, 3 Jul 2024 13:04:35 -0500 Subject: [PATCH 2/3] Update config_panel.toml Update question type and values --- config_panel.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config_panel.toml b/config_panel.toml index dadfb70..2947e0b 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -20,8 +20,9 @@ Examples:\n- eng\n- eng+fra\n- eng+fra+chi_sim""" [main.ocr.ocr_invalidate_digital_signatures] ask = "Do you want signed PDF files to be consumed?" - type = "boolean" - default = "0" + type = "select" + choices.no = "{}" + choices.yes = "{\"invalidate_digital_signatures\": true}" help = """\ Read this information: https://github.com/paperless-ngx/paperless-ngx/discussions/4047\n\ """ From 5054e0eb8c0e5601c2602de4d85dd9d30c41b893 Mon Sep 17 00:00:00 2001 From: CodeShakingSheep <19874562+CodeShakingSheep@users.noreply.github.com> Date: Wed, 3 Jul 2024 13:15:12 -0500 Subject: [PATCH 3/3] Update config_panel.toml Re-do change of question type + expand help text --- config_panel.toml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/config_panel.toml b/config_panel.toml index 2947e0b..4de11e0 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -20,10 +20,9 @@ Examples:\n- eng\n- eng+fra\n- eng+fra+chi_sim""" [main.ocr.ocr_invalidate_digital_signatures] ask = "Do you want signed PDF files to be consumed?" - type = "select" - choices.no = "{}" - choices.yes = "{\"invalidate_digital_signatures\": true}" + type = "string" + default = "{}" help = """\ -Read this information: https://github.com/paperless-ngx/paperless-ngx/discussions/4047\n\ +Write {"invalidate_digital_signatures": true} to the field if you want signed PDF files to be consumed. Read this information: https://github.com/paperless-ngx/paperless-ngx/discussions/4047\n\ """ bind = "PAPERLESS_OCR_USER_ARGS:__INSTALL_DIR__/paperless.conf"