Making the PDF-generation part of the pipeline