-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1986adf
commit 6a62082
Showing
1 changed file
with
51 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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": "" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |