change the method of creating a certificate pdf