What TCPDF error? What is your certificate version? What is your environment?
OK, but we have a lot of certificate versions, with different codes, to help we need some basic information’s like certificate version, moodle version, php version, db version and OS version.
OK, Are you using send to e-mail configuration? If you are using this be sure that save certificate is enabled. Have you made some change in certificate code? Are you running debug? If you are running over some debug level disable this, certificate 3.3 have some problems running with debug enabled. Try to upgrade for a new version, like certificate 4.1, certificate 4.X family have a lot of code improvements, if you like to upgrade certificate to 4.X family you will need to remove your old certificate module.
Just a quick note to confirm that also in 2.7 this specific TCPDF error disappear when disabling Debug Level (Debug messages > None)