Move the PDF exporting job to model layer