Only other thing I can think of is to make sure there are no blank lines or spaces before your opening <?php in your script, and that will screw up the header (ie. It won't get sent), but it should ...
A security researcher has found a severe security flaw in one of the internet's most popular PHP libraries for creating PDF files. The vulnerability impacts TCPDF, one of the "big three" PHP libraries ...