FIxed to allow uplaod of PDF template via settings