Skip to main content


This Script is part of the Common Scripts Pack.#

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:


Operation not permitted#

If you get an error such as:

cannot access 'soffice': Operation not permitted


/usr/bin/soffice: 191: exec: /usr/bin/oosplash: not found

You may need to upgrade Docker, runc, and the libseccomp rpm on your host machine.

Script Data#

Script Typepython3
Cortex XSOAR Version5.0.0

Used In#

This script is used in the following playbooks and scripts.

  • Extract Indicators From File - Generic v2


Argument NameDescription
entry_idThe War Room entryID of the file to convert.
formatOutput format to which to convert. Can specify only file extension, such as: "pdf" or <ext:writer> such as "txt:Text (Encoded)". Default is "pdf".
all_filesIf "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".


File.NameThe name of the output file.String
File.ExtensionThe extension of the file.String
File.EntryIDThe entry ID of the file.String
File.InfoAdditional information about the file.String
File.TypeThe file type.String