extracttext([file], [flag=0/1])
flag = 0 (Default): Show errors in the scripting window
flag = 1: Just return an empty string, don't throw an error
text extracttext(<curitem>);
on both of the attached .pdf files leads to a totally fine output of the
02 - Text output.pdf
onebut throws the error on
01 - IFilter error.pdf
The 01 file just contains an image and no text at all.