Hey,
ich habe dein Beispiel bei mir lokal unter Xampp ausgeführt und erhalte folgende Fehlermeldungen:

( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in tcpdf\tcpdf.php on line 17778
( ! ) Warning: chr() expects parameter 1 to be int, string given in tcpdf\include\tcpdf_fonts.php on line 1671
TCPDF ERROR: Some data has already been output, can't send PDF file