Tcpdf error in wordpress admin side

hi, I’m trying to generate PDF’s from wp-admin custom pages

TCPDF ERROR: Some data has already been output to browser, can't send PDF file

have tried ob_clean etc but no success at all.