I am considering porting my
Prince conversion utility to a calibre plugin. My problem is I'm very much a python (and calibre) newbie, so this will not be a trivial work for me.
I've had a look at the plugin documentation, but there are some details about what I would need that are not available. For example, how can I obtain a list of the filenames in a book and in the spine? And is there some precooked solution to have the files in a named temporary location so they can be fed to Prince?
My original code is actually very simple: just uncompress an epub, add some custom CSS files and issue a command for Prince containing all filenames from the spine.
Another question is whether this should be a "general" plugin or an "output" plugin, given that it is using an external non-free tool and it would replace the already existing PDF conversion.