(1) A python app that takes as input a single pdf andgives a number of markdown files as output (2) A class that converts the multiple markdown files into a single combined pdf file (3) Code to process all pdf files in current working directory, one pdf at a time
You have to combine these, and write some code when the markdown files are being generated.
THis is pretty simple work for a good python programmer.