-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.json
56 lines (56 loc) · 2.2 KB
/
config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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": [
{
"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": "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": ""
}
]
}
]
}