Do you have the PdfHandler extension installed as well? If that's installed then this should Just Work without any additional configuration. Unless something has changed recently....
Yes, PdfHandler is installed.
Sure. We've got a class in MediaWiki called ImageHandler. Media types that require special handling have a subclass of that. Here's the ones for PDF and DjVu for example:
https://phabricator.wikimedia.org/diffusion/EPHD/browse/master/PdfHandler_bo... https://phabricator.wikimedia.org/diffusion/MW/browse/master/includes/media/...
If you wanted to index, say, Word documents, you'd need a similar class in an extension to provide that support (there might be an extension for word docs already, I dunno).
Ok, will have a look at that.
Thanks all! Stefan