-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.json
135 lines (135 loc) · 3.37 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{
"actions": [
{
"name": "Table Summary Generator OpenAI",
"desc": "A Docker image that automatically generates and applies table summary to PDF files using PDFix SDK and OpenAI",
"version": {
"major": 1,
"minor": 0
},
"icon": "table_view",
"category": "Table",
"configurations": [
{
"program": "docker run --platform linux/amd64 -v \"${working_directory}:/data\" -w /data --rm pdfix/table-summary-openai:latest --name \"${license_name}\" --key \"${license_key}\" detect -i \"${input_pdf}\" -o \"${output_pdf}\" --tags \"${tag_name}\" --openai \"${openai_key}\" --lang \"${lang}\" --overwrite \"${overwrite}\"",
"name": "Generate Table Summary for all specified Tags",
"desc": "Generate Table Summary for all specified Tags"
}
],
"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": ""
},
{
"title": "OpenAI API Key",
"name": "openai_key",
"desc": "OpenAI API Key",
"type": "string",
"value": ""
},
{
"title": "Tag Name",
"name": "tag_name",
"desc": "Tag name defined by a regular expression",
"type": "string",
"value": "Table"
},
{
"title": "Language",
"name": "lang",
"desc": "Alternate description language",
"type": "string",
"value": "English",
"set": [
{
"value": "English"
},
{
"value": "Deutsch"
},
{
"value": "Español"
},
{
"value": "Français"
},
{
"value": "Italiano"
},
{
"value": "Português"
},
{
"value": "Nederlands"
},
{
"value": "Polski"
},
{
"value": "Русский"
},
{
"value": "中文"
},
{
"value": "日本語"
},
{
"value": "한국어"
},
{
"value": "Türkçe"
},
{
"value": "Svenska"
},
{
"value": "Norsk"
},
{
"value": "Suomi"
},
{
"value": "Čeština"
},
{
"value": "Magyar"
},
{
"value": "Slovenčina"
},
{
"value": "Українська"
},
{
"value": "Ελληνικά"
},
{
"value": "Română"
}
]
},
{
"title": "Overwrite",
"desc": "Replace the alternate text if it exists",
"name": "overwrite",
"type": "bool",
"value": false
}
]
}
]
}