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
Incoming fields are used through the configured templates, not as automatic overrides. With Command set to
Example:
Example: With magick
IncorrectCorrect
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",
]
}
{
"args": [
"Path/To/Image.png",
"-resize",
"50%",
"Path/To/outputImage.png",
]
}