pdf generation in PHP is not working
<p>I am using fpdf for generating pdf. But it is not working.</p>

<pre><code>$pdf = new FPDF();
$pdf-&gt;AddPage();
$pdf-&gt;SetFont('Arial','B',16);
$pdf-&gt;Cell(40,10,'Hello World!');
$pdff = $pdf-&gt;output('tmp\tmp_file.pdf',"D");
header('Content-Type: application/pdf');
header('Content-Length: '.filesize($pdff));
header('Content-disposition: inline; filename="some_pdf_to_download.pdf"');
header('Cache-Control: public, must-revalidate, max-age=0');
header('Pragma: public'); 
header('Expires: Sat, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
readfile('tmp\tmp_file.pdf');
echo $pdff;
</code></pre>

<p>This is the code I am using. I am getting the output "%PDF 3.......".</p>