uses pdf template to generate certificate