Edit the 'Course details' > 'Completion Document' field
Set the Course Completion document field and use the Print Certificate of Attendance menu item.