Reference · Tools · tools.rs

run_tool Function

Runs options on inputs. Tools that take one file run once per input (a file that fails does not stop the rest); Merge, Compare, Bilder in PDF and Scan take all inputs together.

func runTool(inputs: [ToolInput], options: ToolOptions, lang: String, recognizer: TextRecognizer?) -> [FileResult]

Parameters

NameTypeSwift / C#
inputsVec<ToolInput>inputs
optionsToolOptionsoptions
langStringlang
recognizerOption<Arc<dyn TextRecognizer>>recognizer

Returns

Vec<FileResult>

Errors

Does not throw.

Signatures are generated from the engine’s code. Swift is checked against the generated bindings; C# follows the bindings generator’s naming rules.