I have some functional code that works well to produce PDF documents from entries and entries related to them in playa. I need a plugin for ExpressionEngine where I would select the two relevent channels and the playa field in one that relates to the other and the plugin should then be able to generate PDFS as a port from my functional code... It should allow me to point to a stylesheet within ExpressionEngine which will be applied to the pdf before outputting (using Mpdf). As I say the functional code in PHP is working within ExpressionEngine but it is a pain because I am rewriting the SQL within the functional PHP for each installation.
More details, functional PHP code and a working example can be given.