Depends on the plugin, see
Calibre User Manual: FileTypePlugin.
That plugin must have an
on_import method because it runs when a book is added, but to work at conversion time it needs an
on_preprocess method, you might need to ask elsewhere about that.
BR