extracttext() - flag for not throwing an ifilter error

Features wanted...
Post Reply
highend
Posts: 13274
Joined: 06 Feb 2011 00:33

extracttext() - flag for not throwing an ifilter error

Post by highend »

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 one
but throws the error on 01 - IFilter error.pdf

The 01 file just contains an image and no text at all.
Attachments
pdfs.zip
(221.91 KiB) Downloaded 56 times
3.png
3.png (1.74 KiB) Viewed 662 times
One of my scripts helped you out? Please donate via Paypal

Horst
Posts: 1085
Joined: 24 Jan 2021 12:27
Location: Germany

Re: extracttext() - flag for not throwing an ifilter error

Post by Horst »

I guess the error depends in some way on the installed ifilter.
On my system both of your files throw an ifilter error 80004005.
I have the TETPDFiFilter installed.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: extracttext() - flag for not throwing an ifilter error

Post by highend »

I guess the error depends in some way on the installed ifilter.
Ofc it does. But that's not the point. You can't use it in scripts if you get such an unavoidable script error...

I use the Sumatra PDF iFilter and it works fine for pdfs that contain (at least some) text
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: extracttext() - flag for not throwing an ifilter error

Post by admin »

Okay. :)

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: extracttext() - flag for not throwing an ifilter error

Post by highend »

:tup:
One of my scripts helped you out? Please donate via Paypal

Post Reply