You could borrow the code for the custom text. That is setup to print up to four lines.
Custom certificate (plugin)
Automatic student certificate for every activity within a course
This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.