Lua Filter / Preprocessing
Sometimes you need to transform data before creating the PDF – convert CSV to XML, validate input, or run an XSLT transformation. XTS supports Lua scripts that run before the publishing process.
Running a Lua script
Via command line:
xts --filter myfile.luaOr via configuration file:
filter = "myfile.lua"The script executes before PDF generation. It must be within the XTS search path.