Move exporting PDF job from model to controller