The example code looks like this:
Code: Select all
int nID = getInst().Str2ID("op.document.OCRPages", false);
operation = getInst().CreateOp(nID);
operation.Params().Root().SetUnknown("Input", getActiveDocument());
options = operation.Params().Root().Item(new VARIANT("Options"));
options.SetString("PagesRange.Type", "All");
options.SetInt("OutputType", 0);
options.SetInt("OutputDPI", 300);
options.SetString("ExtParams.Language", "deu");
operation.Do(0);
Do you by chance have any idea what might cause the error or what we're doing wrong? Or is the operation called differently now?