You don't need to change the plugin architecture to integrate this into calibre. You just need to add special case code to plumber.py which is responsible for creating the conversion pipeline.
Basically plumber is passed in the input and output filenames and takes care of building and runing the conversion pipeline. You can have it special case the pdf-to-pdf path.
|