Data has already been sent to output, unable to output PDF file