From 6a620821dc596cd5586a1e3eadc480a9ad948128 Mon Sep 17 00:00:00 2001 From: jbaranec Date: Mon, 27 Jan 2025 12:20:09 +0100 Subject: [PATCH] json format --- config.json | 102 ++++++++++++++++++++++++++-------------------------- 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/config.json b/config.json index 50a5533..db6b915 100644 --- a/config.json +++ b/config.json @@ -1,56 +1,56 @@ { - "actions": [ - { - "name": "Detect and Set PDF Language", - "desc": "Automatically detect a PDF's language and update the document metadata", - "version": "1.0.0", - "icon": "language", - "category": "Metadata", - "program": "docker run --platform linux/amd64 -v ${working_directory}:/data -w /data --rm pdfix/detect-language:latest --name \"${license_name}\" --key \"${license_key}\" lang-detect -i \"/data/${input_pdf}\" -o \"/data/${output_pdf}\"", - "args": [ + "actions": [ { - "name": "input_pdf", - "desc": "Input PDF file", - "flags": 2, - "type": "file_path", - "ext": "pdf", - "value": "" + "name": "Detect and Set PDF Language", + "desc": "Automatically detect a PDF's language and update the document metadata", + "version": "1.0.0", + "icon": "language", + "category": "Metadata", + "program": "docker run --platform linux/amd64 -v ${working_directory}:/data -w /data --rm pdfix/detect-language:latest --name \"${license_name}\" --key \"${license_key}\" lang-detect -i \"/data/${input_pdf}\" -o \"/data/${output_pdf}\"", + "args": [ + { + "name": "input_pdf", + "desc": "Input PDF file", + "flags": 2, + "type": "file_path", + "ext": "pdf", + "value": "" + }, + { + "name": "output_pdf", + "desc": "Output PDF file", + "flags": 4, + "type": "file_path", + "ext": "pdf", + "value": "" + } + ] }, { - "name": "output_pdf", - "desc": "Output PDF file", - "flags": 4, - "type": "file_path", - "ext": "pdf", - "value": "" + "name": "Detect PDF Language and Save to TXT", + "desc": "Automatically detect the language of a PDF document and saves the detected language code into a TXT file", + "version": "1.0.0", + "icon": "language", + "category": "Metadata", + "program": "docker run --platform linux/amd64 -v ${working_directory}:/data -w /data --rm pdfix/detect-language:latest --name \"${license_name}\" --key \"${license_key}\" lang-detect -i \"/data/${input_pdf}\" -o \"/data/${output_txt}\"", + "args": [ + { + "name": "input_pdf", + "desc": "Input PDF file", + "flags": 2, + "type": "file_path", + "ext": "pdf", + "value": "" + }, + { + "name": "output_txt", + "desc": "Output text file with the result of detection", + "flags": 4, + "type": "file_path", + "ext": "txt", + "value": "" + } + ] } - ] - }, - { - "name": "Detect PDF Language and Save to TXT", - "desc": "Automatically detect the language of a PDF document and saves the detected language code into a TXT file", - "version": "1.0.0", - "icon": "language", - "category": "Metadata", - "program": "docker run --platform linux/amd64 -v ${working_directory}:/data -w /data --rm pdfix/detect-language:latest --name \"${license_name}\" --key \"${license_key}\" lang-detect -i \"/data/${input_pdf}\" -o \"/data/${output_txt}\"", - "args": [ - { - "name": "input_pdf", - "desc": "Input PDF file", - "flags": 2, - "type": "file_path", - "ext": "pdf", - "value": "" - }, - { - "name": "output_txt", - "desc": "Output text file with the result of detection", - "flags": 4, - "type": "file_path", - "ext": "txt", - "value": "" - } - ] - } - ] -} + ] +} \ No newline at end of file