I'm saving a PDF document with FPDF using the following code...
$pdf->Output('doc.pdf','D');
...but it saves it as 'doc.pdf.html'
Why is it adding the html extension?
I'm saving a PDF document with FPDF using the following code...
$pdf->Output('doc.pdf','D');
...but it saves it as 'doc.pdf.html'
Why is it adding the html extension?
The problem for this in my case, was that I was not terminating the script right after I echo'd out the PDF. I was using a framework and letting it finish out which was causing the problem. So just add an "exit" statement and it should fix it.