/
ConvertFile.yml
48 lines (48 loc) · 1.57 KB
/
ConvertFile.yml
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
commonfields:
id: ConvertFile
version: -1
name: ConvertFile
script: ''
type: python
subtype: python3
fromversion: 5.0.0
tags:
- Utility
comment: 'Converts a file from one format to a different format by using the convert-to function of Libre Office. For a list of supported input/output formats see: https://wiki.openoffice.org/wiki/Framework/Article/Filter/FilterList_OOo_3_0'
enabled: true
args:
- name: entry_id
required: true
default: true
description: The War Room entryID of the file to convert.
- name: format
description: 'Output format to which to convert. Can specify only file extension, such as: "pdf" or <ext:writer> such as "txt:Text (Encoded)". Default is "pdf".'
defaultValue: pdf
- name: all_files
auto: PREDEFINED
predefined:
- "yes"
- "no"
description: If "yes", will return all generated files. If "no", will return only the main file. Relevant for formats that might generate multiple files, such as html (which will generate image files additionally to the main html file). Default is "no".
defaultValue: "no"
outputs:
- contextPath: File.Name
description: The name of the output file.
type: String
- contextPath: File.Extension
description: The extension of the file.
type: String
- contextPath: File.EntryID
description: The entry ID of the file.
type: String
- contextPath: File.Info
description: Additional information about the file.
type: String
- contextPath: File.Type
description: The file type.
type: String
scripttarget: 0
dockerimage: demisto/office-utils:2.0.0.88735
runas: DBotWeakRole
tests:
- No tests (auto formatted)