Skip to main content
Version: Latest (4.63.0)

Exec

The Exec component allows you to execute third party command line applications. This way you can run advanced transformations on your content using tools like:

  • powerpdf
  • imageMagick
  • pdftk
  • 7zip

See how it works:
Exec Explainer

Configuration​

Inputs | Outputs​


Exec
Input
Output
Error
00 0 (ily5345)
Incoming fields are used through the configured templates, not as automatic overrides. With Command set to 7z and Args set to {{ $ args }}, the command 7z a -t7z files.7z *.txt can be executed with the following input:

Example:
{
"args":[
"a",
"-t7z",
"files.7z",
"*.txt"
]
}
note
Each argument must be a separate string. Arguments are passed directly to the executable, without a shell.

Example: With magick

Set Command to magick and Args to {{ $ args }}.



Incorrect
{
"args": [
"Path/To/Image.png",
"-resize 50%",
"Path/To/outputImage.png",
]
}
Correct
{
"args": [
"Path/To/Image.png",
"-resize",
"50%",
"Path/To/outputImage.png",
]
}