TCPDF ERROR: Some data has already been output to browser, can't send PDF file
Discuss TCPDF ERROR: Some data has already been output to browser, can't send PDF file in the PHP Development forum on Dev Shed. TCPDF ERROR: Some data has already been output to browser, can't send PDF file PHP Development forum discussing coding practices, tips on PHP, and other PHP-related topics. PHP is an open source scripting language that has taken the web development industry by storm.
Time spent in forums: 3 Days 23 h 33 m
Reputation Power: 12
Thank you gw1500se!
But, please, believe me I have been checking that no blanks were there. In my code above I simply had the header <!DOCTYPE HTML>, the header tag, the body tag and immediately after, in a new line, the PHP short tag <? and in the next line the TCPDF code I show in my first post.
By reading your kind answer -to be honest, not believing you... sorry- I have removed both the tags header and body and nothing happened. Finally I removed the <!DOCTYPE HTML> and the script does what it must.
If you did not insist in removing EVERYTHING other than de TCPDF code I would still be desperate... and a customer waiting next Monday for my finished software.